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:org.caleydo.vis.lineup.ui.detail.JSCombineEditorDialog.java
License:Open Source License
@Override public void create() { super.create(); getShell().setText("Edit JavaScript Combination Function"); setTitle("Edit JavaScript Combination Function"); // Set the message setMessage(DEFAULT_MESSAGE, IMessageProvider.INFORMATION); }
From source file:org.caleydo.vis.lineup.ui.detail.JSCombineEditorDialog.java
License:Open Source License
private void testPressed() { try {/*w ww. j av a 2 s. c o m*/ float[] fs = parseArray(testUI.getText()); if (!verifyCode()) return; w.getBuffer().setLength(0); // reset Bindings b = engine.createBindings(); b.put("v", new Wrapper(fs, 0)); b.put("weights", parseArray(testWeightUI.getText())); b.put("mode", "apply"); String output = Objects.toString(script.eval(b)); testOutputUI.setText(output); String extra = w.toString(); if (extra.length() > 0) setMessage(extra, IMessageProvider.WARNING); else setMessage(DEFAULT_MESSAGE, IMessageProvider.INFORMATION); } catch (NumberFormatException e) { testOutputUI.setText("Invalid input: " + e.getMessage()); } catch (ScriptException e) { testOutputUI.setText("Error: " + e.getMessage()); } }
From source file:org.caleydo.vis.lineup.ui.detail.JSCombineEditorDialog.java
License:Open Source License
private void testOrderPressed() { try {/*from www . j av a2 s . c o m*/ float[] as = parseArray(testOrderAUI.getText()); float[] bs = parseArray(testOrderBUI.getText()); if (!verifyCodeOrder() || !verifyCode()) return; w.getBuffer().setLength(0); // reset Bindings b = engine.createBindings(); b.put("a", new Wrapper(as, 0)); b.put("b", new Wrapper(bs, 0)); b.put("weights", parseArray(testWeightUI.getText())); b.put("mode", "multi"); Object output = script.eval(b); if (output instanceof Number) output = ((Number) output).intValue(); testOrderOutputUI.setText(Objects.toString(output)); String extra = w.toString(); if (extra.length() > 0) setMessage(extra, IMessageProvider.WARNING); else setMessage(DEFAULT_MESSAGE, IMessageProvider.INFORMATION); } catch (NumberFormatException e) { testOutputUI.setText("Invalid input: " + e.getMessage()); } catch (ScriptException e) { testOutputUI.setText("Error: " + e.getMessage()); } }
From source file:org.caleydo.vis.lineup.ui.mapping.JSEditorDialog.java
License:Open Source License
@Override public void create() { super.create(); getShell().setText("Edit JavaScript Mapping Function"); setTitle("Edit JavaScript Mapping Function"); // Set the message setMessage(DEFAULT_MESSAGE, IMessageProvider.INFORMATION); }
From source file:org.caleydo.vis.lineup.ui.mapping.JSEditorDialog.java
License:Open Source License
private void testPressed() { try {/*from w ww . j a va 2 s. c o m*/ double f = Double.parseDouble(testUI.getText()); if (!verifyCode()) return; w.getBuffer().setLength(0); // reset Bindings b = engine.createBindings(); b.put("v", f); model.addBindings(b); final Object r = script.eval(b); String output = Objects.toString(r); testOutputUI.setText(output); String extra = w.toString(); if (extra.length() > 0) setMessage(extra, IMessageProvider.WARNING); else setMessage(DEFAULT_MESSAGE, IMessageProvider.INFORMATION); } catch (NumberFormatException e) { testOutputUI.setText("Invalid input: " + e.getMessage()); } catch (ScriptException e) { testOutputUI.setText("Error: " + e.getMessage()); } }
From source file:org.csstudio.platform.libs.epics.ui.EpicsPreferencePage.java
License:Open Source License
/** {@inheritDoc} */ @Override// w w w . j a va 2 s .c o m public final void propertyChange(final PropertyChangeEvent event) { setMessage(Messages.EpicsPreferencePage_RESTART_MESSAGE, IMessageProvider.INFORMATION); super.propertyChange(event); }
From source file:org.csstudio.utility.sysmon.PreferencePage.java
License:Open Source License
/** {@inheritDoc} */ @Override/*from w w w . j av a 2 s. co m*/ public final void propertyChange(final PropertyChangeEvent event) { setMessage(Messages.PreferencePage_Restart, IMessageProvider.INFORMATION); super.propertyChange(event); }
From source file:org.dawnsci.plotting.tools.preference.detector.MissingDetectorModulesSelectorDialog.java
License:Open Source License
@Override public void create() { super.create(); setTitle("Missing detector modules"); setMessage("Select the missing modules", IMessageProvider.INFORMATION); }
From source file:org.deidentifier.arx.gui.view.impl.menu.DialogAbout.java
License:Open Source License
@Override protected Control createContents(Composite parent) { Control contents = super.createContents(parent); setTitle(Resources.getMessage("AboutDialog.12")); //$NON-NLS-1$ setMessage(Resources.getMessage("AboutDialog.13"), IMessageProvider.INFORMATION); //$NON-NLS-1$ if (image != null) setTitleImage(image); //$NON-NLS-1$ return contents; }
From source file:org.deidentifier.arx.gui.view.impl.menu.DialogAutoMLInfo.java
License:Apache License
@Override protected Control createContents(Composite parent) { Control contents = super.createContents(parent); setTitle(Resources.getMessage("AutoML.9")); //$NON-NLS-1$ setMessage(Resources.getMessage("AutoML.10"), IMessageProvider.INFORMATION); //$NON-NLS-1$ if (image != null) setTitleImage(image); // $NON-NLS-1$ return contents; }