PopupDialog popupDialog = new PopupDialog(form.getShell(), shellStyle, true, false, false, false, false, "CMR description", "CMR description") { private static final int CURSOR_SIZE = 15;
PopupDialog popupDialog = new PopupDialog(form.getShell(), shellStyle, true, false, false, false, false, "Storage description", "Storage description") { private static final int CURSOR_SIZE = 15;
/** * To be called when add is requested to the tree. * * @return Returns new {@link AbstractClassSensorAssignment} with the correctly set sensor type. */ private AbstractClassSensorAssignment<?> addRequested() { SensorAssignmentSelectionDialog dialog = new SensorAssignmentSelectionDialog(managedForm.getForm().getShell()); if (dialog.open() == Window.OK) { return dialog.getSensorAssignment(); } return null; }
/** * Fires edit action. */ private void fireEdit() { StructuredSelection selection = (StructuredSelection) tableViewer.getSelection(); Object selected = selection.getFirstElement(); if (selected instanceof AgentMapping) { AgentMappingDialog agentMappingDialog = new AgentMappingDialog(getManagedForm().getForm().getShell(), (AgentMapping) selected, environments); if (Window.OK == agentMappingDialog.open()) { updateInternal(true); } } }
/** * To be called when add is requested to the table. * * @return Returns new {@link ExcludeRule} or <code>null</code> if definition of one has been * canceled. */ private ExcludeRule addRequested() { InputDialog inputDialog = new InputDialog(getManagedForm().getForm().getShell(), "New Exclude Rule", "Enter class name or pattern:", "", new FqnWildcardValidator(false, false)); if (inputDialog.open() == Window.OK) { ExcludeRule excludeRule = new ExcludeRule(); excludeRule.setClassName(inputDialog.getValue()); return excludeRule; } return null; }
private boolean openInternalBrowser(String url) { Preferences pref = HelpBasePlugin.getDefault().getPluginPreferences(); boolean openInEditor = pref.getBoolean(IHelpBaseConstants.P_KEY_OPEN_IN_EDITOR); Shell windowShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Shell helpShell = mform.getForm().getShell(); boolean isDialog = (helpShell != windowShell); if (!isDialog && openInEditor) { return DefaultHelpUI.showInWorkbenchBrowser(url, true); } showPage(IHelpUIConstants.HV_BROWSER_PAGE); BrowserPart bpart = (BrowserPart) findPart(IHelpUIConstants.HV_BROWSER); if (bpart != null) { bpart.showURL(BaseHelpSystem .resolve(url, "/help/ntopic").toString()); //$NON-NLS-1$ return true; } return false; }
tbm.add ( new AddAction ( map, form.getShell () ) ); tbm.add ( new RemoveAction ( map, ViewersObservables.observeMultiSelection ( viewer ) ) ); section.setTextClient ( tbm.createControl ( section ) );
tbm.add ( new AddAction ( map, form.getShell () ) ); tbm.add ( new RemoveAction ( map, ViewersObservables.observeMultiSelection ( viewer ) ) ); section.setTextClient ( tbm.createControl ( section ) );