List of usage examples for org.eclipse.jface.dialogs IMessageProvider INFORMATION
int INFORMATION
To view the source code for org.eclipse.jface.dialogs IMessageProvider INFORMATION.
Click Source Link
From source file:com.ibm.xsp.extlib.designer.bluemix.wizard.AbstractBluemixWizardPage.java
License:Open Source License
@Override public void createControl(Composite parent) { _wiz = (AbstractBluemixWizard) getWizard(); setTitle(getPageTitle());/*w w w.j ava 2s . c o m*/ setMessage(StringUtil.format(getPageMsg(), "\n"), IMessageProvider.INFORMATION); // $NON-NLS-1$ setImageDescriptor(_wiz._image); setPageComplete(false); }
From source file:com.ibm.xsp.extlib.designer.bluemix.wizard.AbstractBluemixWizardPage.java
License:Open Source License
protected void showWarning(String msg) { if (StringUtil.isEmpty(msg)) { setMessage(StringUtil.format(getPageMsg(), "\n"), IMessageProvider.INFORMATION); // $NON-NLS-1$ } else {/*from ww w .j a va2 s . co m*/ setMessage(msg, IMessageProvider.WARNING); } }
From source file:com.ibm.xsp.extlib.designer.bluemix.wizard.DirectoryBluemixWizardPage.java
License:Open Source License
@Override public void modifyText(ModifyEvent event) { if (event.widget == _dirText) { if (_wiz.origConfig.isValid(false)) { if (!StringUtil.equalsIgnoreCase(_wiz.origConfig.directory, getDirectory())) { setMessage(/* ww w. j a va 2 s . co m*/ "Warning, you are changing the deployment directory for this application. The existing configuration will be lost.", // $NLX-DirectoryBluemixWizardPage.Warningyouarechangingthedeploymen-1$ IMessageProvider.WARNING); } else { setMessage(getPageMsg(), IMessageProvider.INFORMATION); } } validatePage(); } }
From source file:com.ibm.xsp.extlib.designer.relational.jdbc.plugin.wizard.JdbcPluginWizardPage.java
License:Open Source License
@Override public void createControl(Composite parent) { setTitle(PAGE_TITLE);/*from w w w . j a va2s.co m*/ setMessage(INITIAL_MSG, IMessageProvider.INFORMATION); Composite container = new Composite(parent, SWT.NONE); container.setLayoutData(new GridData(GridData.FILL_BOTH)); container.setLayout(WizardUtils.createGridLayout(1, 5)); // Create the Driver Details section Group group = WizardUtils.createGroup(container, "Driver Details", 1, 3); // $NLX-JdbcPluginWizardPage.DriverDetails-1$ group.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); WizardUtils.createLabel(group, "Type:", 1).setToolTipText(TYPE_TOOLTIP); // $NLX-JdbcPluginWizardPage.Type-1$ _typeCombo = WizardUtils.createCombo(group, 2, _driverDefs.getNames(), 0, this); _typeCombo.setToolTipText(TYPE_TOOLTIP); WizardUtils.createLabel(group, "Class:", 1).setToolTipText(CLASS_TOOLTIP); // $NLX-JdbcPluginWizardPage.Class-1$ _classText = WizardUtils.createText(group, 2); _classText.setToolTipText(CLASS_TOOLTIP); _classText.addModifyListener(this); Label label = WizardUtils.createLabel(group, "JAR Files:", 1); // $NLX-JdbcPluginWizardPage.JarFiles-1$ // Top Align this label GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING); gd.verticalIndent = 5; label.setLayoutData(gd); label.setToolTipText(JAR_TOOLTIP); _tableViewer = WizardUtils.createTableViewer(group, 1, 1, null, SWT.FULL_SELECTION | SWT.BORDER | SWT.V_SCROLL | SWT.MULTI); ColumnViewerToolTipSupport.enableFor(_tableViewer, ToolTip.NO_RECREATE); _tableViewer.getTable().setToolTipText(JAR_TOOLTIP); _tableViewer.getTable().setHeaderVisible(false); _tableViewer.getTable().setLinesVisible(false); _tableViewer.getTable().addControlListener(this); _tableViewer.setContentProvider(new ArrayContentProvider()); // Create the only column TableViewerColumn col = new TableViewerColumn(_tableViewer, SWT.LEFT); col.getColumn().setResizable(false); col.setLabelProvider(new ColumnLabelProvider() { @Override public String getText(Object element) { return new File((String) element).getName(); } @Override public Image getImage(Object element) { return JAR_IMAGE; } @Override public String getToolTipText(Object element) { return (String) element; } @Override public Point getToolTipShift(Object object) { return new Point(5, 5); } @Override public int getToolTipDisplayDelayTime(Object object) { return 100; // msec } @Override public int getToolTipTimeDisplayed(Object object) { return 5000; // msec } }); Composite buttonComposite = new Composite(group, SWT.NONE); buttonComposite.setLayout(WizardUtils.createGridLayout(1, 0)); buttonComposite .setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_BEGINNING)); _addBtn = WizardUtils.createButton(buttonComposite, "Add JARs", this); // $NLX-JdbcPluginWizardPage.AddJars-1$ _delBtn = WizardUtils.createButton(buttonComposite, "Remove JARs", this); // $NLX-JdbcPluginWizardPage.RemoveJars-1$ _clearBtn = WizardUtils.createButton(buttonComposite, "Clear", this); // $NLX-JdbcPluginWizardPage.Clear-1$ group = WizardUtils.createGroup(container, "Output", 1, 3); // $NLX-JdbcPluginWizardPage.Output-1$ WizardUtils.createLabel(group, "Plug-in Name:", 1).setToolTipText(PLUGIN_TOOLTIP); // $NLX-JdbcPluginWizardPage.PluginName-1$ _pluginText = WizardUtils.createText(group, 2); _pluginText.setToolTipText(PLUGIN_TOOLTIP); _pluginText.addModifyListener(this); WizardUtils.createLabel(group, "Directory:", 1).setToolTipText(DIR_TOOLTIP); // $NLX-JdbcPluginWizardPage.Directory-1$ _dirText = WizardUtils.createText(group, 1); _dirText.setToolTipText(DIR_TOOLTIP); _dirText.addModifyListener(this); _dirBtn = WizardUtils.createButton(group, "Browse...", this); // $NLX-JdbcPluginWizardPage.Browse-1$ _dirBtn.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); WizardUtils.createLabel(group, "", 1); _updateSiteRadio = WizardUtils.createRadio(group, "Create full Update Site", 2, null); // $NLX-JdbcPluginWizardPage.CreatefullUpdateSite-1$ _updateSiteRadio.setSelection(true); WizardUtils.createLabel(group, "", 1); WizardUtils.createRadio(group, "Create Plug-in only", 2, null); // $NLX-JdbcPluginWizardPage.CreatePluginonly-1$ WizardUtils.createLabel(group, "", 1); _deleteCheck = WizardUtils.createCheckBox(group, "Delete temporary project on completion", 2, true); // $NLX-JdbcPluginWizardPage.Deletetemporaryprojectoncompletio-1$ setControl(container); setPageComplete(false); }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.applicationlayout.AlwPropertiesPage.java
License:Open Source License
protected AlwPropertiesPage() { super(""); setMessage("Choose the options for this configuration.", IMessageProvider.INFORMATION); // $NLX-AlwPropertiesPage.Choosetheoptionsforthisconfigurat-1$ }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.applicationlayout.AlwStartPage.java
License:Open Source License
protected AlwStartPage() { super(""); setTitle("Application Layout"); // $NLX-AlwStartPage.ApplicationLayout-1$ setMessage("Choose the configuration for this control.", IMessageProvider.INFORMATION); // $NLX-AlwStartPage.Choosetheconfigurationforthiscont-1$ // Setup the title font _titleFont = JFaceResources.getBannerFont(); // Setup hand cursor _handCursor = new Cursor(Display.getCurrent(), SWT.CURSOR_HAND); // Load images - Do not have to be disposed later - plugin maintains a list _defImage = ExtLibToolingPlugin.getImage("app_layout.jpg"); // $NON-NLS-1$ if (_showResponsiveIcon) { _responsiveImage = NavigatorPlugin.getImage("navigatorIcons/navigatorChild.png"); // $NON-NLS-1$ } else {//from w ww .j a v a 2 s.co m _responsiveImage = null; } // Setup hyperlink color _hyperlinkColor = new Color(Display.getCurrent(), 0, 0, 255); }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.applicationlayout.ApplicationLayoutDropDialog.java
License:Open Source License
@Override protected void fillClientArea(Composite parent) { propsOpenInEditor = ExtLibToolingUtil.isPropertiesOpenInEditor(panelData.getDesignerProject()); initData(parent);//w w w. j a v a 2 s .c o m if (parent.getLayout() instanceof GridLayout) { ((GridLayout) parent.getLayout()).marginWidth = 7; ((GridLayout) parent.getLayout()).marginHeight = 0; } mainPanel = new Composite(parent, SWT.NONE); GridLayout layout = SWTLayoutUtils.createLayoutDefaultSpacing(1); mainPanel.setLayout(layout); GridData data = SWTLayoutUtils.createGDFill(); data.horizontalSpan = 2; mainPanel.setLayoutData(data); Composite pickerParent = new Composite(mainPanel, SWT.NONE); pickerParent.setLayout(SWTLayoutUtils.createLayoutNoMarginDefaultSpacing(2)); pickerParent.setLayoutData(SWTLayoutUtils.createGDFillHorizontal()); new Label(pickerParent, SWT.NONE).setText("&Configuration:"); // $NLX-AddViewControlDialog.Configuration-1$ combo = new DCComboBox(pickerParent, SWT.DROP_DOWN | SWT.READ_ONLY, "applayout.config.id"); //$NON-NLS-1$ combo.setLayoutData(SWTLayoutUtils.createGDFillHorizontal()); combo.setFirstBlankLine(false); combo.setEditableLabels(false); FacesRegistry registry = panelData.getDesignerProject().getFacesRegistry(); ConfigurationField configField = new ConfigurationField(dnAppLayout, registry); combo.setAttributeName(configField.getName()); ILookup lookup = configField.getLookup(); combo.setLookup(lookup); dynamicComposite = new ComplexPanelComposite(mainPanel, SWT.NONE); GridData gd = GridDataFactory.copyData(data); int hint = 156; dynamicComposite.updatePanelData(panelData); // check if we should add theme combo if (addingThemeControlInfo()) { hint = 181; // make extra room for theme combo } hint = convertVerticalDLUsToPixels(hint); gd.heightHint = hint; // make room for dynamic panels dynamicComposite.setLayoutData(gd); combo.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { DataNode dn = DCUtils.findDataNode(combo, true); if (dn != null) { IMember config = dn.getMember(EXT_LIB_ATTR_CONFIGURATION); if (config != null) { try { initControlDataNode(dynamicComposite, dnAppLayout.getClassDef()); } catch (Exception e) { ExtLibToolingLogger.EXT_LIB_TOOLING_LOGGER.error(e, "Error changing configuration of applicationLayout"); // $NLE-ApplicationLayoutDropDialog.Errorchangingconfigurationofappli-1$ } } } updateUI(); } }); boolean found = false; for (int i = 0; i < lookup.size(); i++) { String label = lookup.getCode(i); if (label != null && StringUtil.startsWithIgnoreCase(label, "oneui")) { //$NON-NLS-1$ combo.select(i); found = true; break; } } if (!found) { if (combo.getItemCount() > 0) { combo.select(0); } } updateUI(); setMessage("Select a configuration, and then choose what to include in the layout.", IMessageProvider.INFORMATION); // $NLX-ApplicationLayoutDropDialog.Selectaconfigurationandthenchoose-1$ Composite columns = new Composite(mainPanel, SWT.NONE); columns.setLayout(SWTLayoutUtils.createLayoutNoMarginDefaultSpacing(2)); Label l = new Label(columns, SWT.NONE); l.setText(""); //$NON-NLS-1$ parent.layout(true); parent.pack(); }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.calendarview.CvwActionPage.java
License:Open Source License
@Override public void createControl(Composite parent) { setTitle(PAGE_TITLE);//from w w w. j a v a 2 s . com setMessage(INITIAL_MSG, IMessageProvider.INFORMATION); Composite container = new Composite(parent, SWT.NONE); container.setLayout(WizardUtils.createGridLayout(1, 5)); _dateRangeGroup = WizardUtils.createGroup(container, 1, 2); _dateRangeCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Include date-range actions", 2, true); // $NON-NLS-1$ _dateRangeCheckbox.addSelectionListener(this); _todayCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Today", 1, true, 20); // $NON-NLS-1$ _todayTomorrowCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Today and tomorrow", 1, true, 20); // $NON-NLS-1$ _workWeekCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Work week", 1, true, 20); // $NON-NLS-1$ _fullWeekCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Full week", 1, true, 20); // $NON-NLS-1$ _twoWeeksCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Two weeks", 1, true, 20); // $NON-NLS-1$ _monthCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Month", 1, true, 20); // $NON-NLS-1$ _yearCheckbox = WizardUtils.createCheckBox(_dateRangeGroup, "Year", 1, true, 20); // $NON-NLS-1$ Group group = WizardUtils.createGroup(container, 1, 2); _summaryCheckbox = WizardUtils.createCheckBox(group, "Include summary actions", 1, true); // $NON-NLS-1$ setControl(container); setPageComplete(true); }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.calendarview.CvwRestPage.java
License:Open Source License
@Override public void createControl(Composite parent) { setTitle(PAGE_TITLE);/*from ww w. j ava 2 s. co m*/ setMessage(INITIAL_MSG, IMessageProvider.INFORMATION); _container = new Composite(parent, SWT.NONE); _container.setLayout(WizardUtils.createGridLayout(1, 0)); _colGroup = WizardUtils.createGroup(_container, 1, 2); String txt = "This is not a standard Notes Domino calendar view"; // $NON-NLS-1$ _notStandardCheckbox = WizardUtils.createCheckBox(_colGroup, txt, 2, false); _notStandardCheckbox.addSelectionListener(this); for (String[] column : restCols) { WizardUtils.createLabel(_colGroup, column[0] + " :", 1); _colMap.put(column[0], new ColumnCombo(_colGroup, column[1])); } setControl(_container); setPageComplete(true); }
From source file:com.ibm.xsp.extlib.designer.tooling.palette.calendarview.CvwStartPage.java
License:Open Source License
@Override public void createControl(Composite parent) { setTitle(CalendarViewDropWizard.WIZARD_TITLE); setMessage(INITIAL_MSG, IMessageProvider.INFORMATION); Composite container = new Composite(parent, SWT.NONE); container.setLayout(WizardUtils.createGridLayout(1, 5)); WizardUtils.createLabel(container, LABEL_TXT, 1); _yesRadio = WizardUtils.createRadio(container, "Yes", 1, this, 20); // $NON-NLS-1$ WizardUtils.createRadio(container, "No (drop an unconfigured iNotes Calendar control)", 1, this, 20); // $NON-NLS-1$ setControl(container);/*from ww w . j av a 2 s .c o m*/ setPageComplete(false); }