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

« back to all changes in this revision

Viewing changes to systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/internal/callgraph/launch/LaunchWizard.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:
22
22
import org.eclipse.jface.dialogs.InputDialog;
23
23
import org.eclipse.jface.layout.GridDataFactory;
24
24
import org.eclipse.jface.viewers.ISelection;
 
25
import org.eclipse.jface.window.Window;
25
26
import org.eclipse.linuxtools.internal.callgraph.core.PluginConstants;
26
27
import org.eclipse.swt.SWT;
27
28
import org.eclipse.swt.events.SelectionAdapter;
131
132
                                                Messages.getString("LaunchWizard.NamePrefix")), null);  //$NON-NLS-1$
132
133
                id.open();
133
134
                
134
 
                if (id.getReturnCode() == InputDialog.CANCEL){                  
 
135
                if (id.getReturnCode() == Window.CANCEL){                       
135
136
                        return;
136
137
                }
137
138
                
177
178
                scriptButton.setText(Messages.getString("SystemTapOptionsTab.BrowseFiles")); //$NON-NLS-1$
178
179
                scriptButton.setLayoutData(new GridData());
179
180
                scriptButton.addSelectionListener(new SelectionAdapter() {
 
181
                        @Override
180
182
                        public void widgetSelected(SelectionEvent e) {
181
183
                                String filePath = scriptLocation.getText();
182
184
                                FileDialog dialog = new FileDialog(sh, SWT.SAVE);
199
201
                Button binaryButton = new Button(fileComp, SWT.PUSH);
200
202
                binaryButton.setText(Messages.getString("SystemTapOptionsTab.WorkspaceButton2")); //$NON-NLS-1$
201
203
                binaryButton.addSelectionListener(new SelectionAdapter() {
 
204
                        @Override
202
205
                        public void widgetSelected(SelectionEvent e) {
203
206
                                ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(sh, new WorkbenchLabelProvider(), new WorkbenchContentProvider());
204
207
                                dialog.setTitle(Messages.getString("SystemTapOptionsTab.SelectResource"));  //$NON-NLS-1$
228
231
                Button argumentsButton = new Button(argumentsComp, SWT.PUSH);
229
232
                argumentsButton.setText(Messages.getString("LaunchWizard.Func")); //$NON-NLS-1$
230
233
                argumentsButton.addSelectionListener(new SelectionAdapter() {
 
234
                        @Override
231
235
                        public void widgetSelected(SelectionEvent e) {
232
236
                                argumentsLocation.setText(
233
237
                                                argumentsLocation.getText() + " process(\""  //$NON-NLS-1$
234
 
                                                + binaryLocation.getText() + "\").function(\"\")"); //$NON-NLS-1$ //$NON-NLS-2$
 
238
                                                + binaryLocation.getText() + "\").function(\"\")"); //$NON-NLS-1$
235
239
                        }
236
240
                });
237
241
                
245
249
                launch.setLayoutData(new GridData(GridData.CENTER, GridData.BEGINNING, false, false));
246
250
                launch.setText(Messages.getString("LaunchWizard.Launch")); //$NON-NLS-1$
247
251
                launch.addSelectionListener(new SelectionAdapter() {
 
252
                        @Override
248
253
                        public void widgetSelected(SelectionEvent e) {
249
254
                                        scriptPath = scriptLocation.getText();
250
255
                                        binaryPath = binaryLocation.getText();
280
285
                return completed;
281
286
        }
282
287
        
 
288
        @Override
283
289
        public String setScriptPath() {
284
290
                scriptPath = "IMPLEMENT";
285
291
                return scriptPath;