~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.systemtap.ui.ide/src/org/eclipse/linuxtools/internal/systemtap/ui/ide/actions/hidden/ProbeAliasAction.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
         * @param view  browser that fires this action
53
53
         */
54
54
        public ProbeAliasAction(IWorkbenchWindow window, ProbeAliasBrowserView view) {
55
 
                LogManager.logInfo("initialized", this);
 
55
                LogManager.logInfo("initialized", this); //$NON-NLS-1$
56
56
                this.window = window;
57
57
                setId(ID);
58
58
                setActionDefinitionId(ID);
68
68
         */
69
69
        public void selectionChanged(IWorkbenchPart part, ISelection incoming) {
70
70
                if (incoming instanceof IStructuredSelection) {
71
 
                        LogManager.logDebug("Changing selection", this);
 
71
                        LogManager.logDebug("Changing selection", this); //$NON-NLS-1$
72
72
                        selection = (IStructuredSelection) incoming;
73
73
                        setEnabled(selection.size() == 1);
74
74
                } else {
75
 
                        LogManager.logDebug("Disabling, selection not IStructuredSelection", this);
 
75
                        LogManager.logDebug("Disabling, selection not IStructuredSelection", this); //$NON-NLS-1$
76
76
                        // Other selections, for example containing text or of other kinds.
77
77
                        setEnabled(false);
78
78
                }
80
80
 
81
81
        public void dispose() {
82
82
                window.getSelectionService().removeSelectionListener(this);
83
 
                LogManager.logInfo("disposed", this);
 
83
                LogManager.logInfo("disposed", this); //$NON-NLS-1$
84
84
        }
85
85
 
86
86
        /**
88
88
         * if there is no active <code>STPEditor</code>, and then inserts a template probe for the
89
89
         * item that the user clicked on. 
90
90
         */
 
91
        @Override
91
92
        public void run() {
92
 
                LogManager.logDebug("Start run:", this);
 
93
                LogManager.logDebug("Start run:", this); //$NON-NLS-1$
93
94
                IWorkbenchPage page = window.getActivePage();
94
95
                IEditorPart editor = page.getActiveEditor();
95
96
                if(null == editor) {
129
130
                                stpeditor.insertText(s.toString());
130
131
                        }
131
132
                }
132
 
                LogManager.logDebug("End run:", this);
 
133
                LogManager.logDebug("End run:", this); //$NON-NLS-1$
133
134
        }
134
135
}