Example usage for org.eclipse.jface.resource ImageDescriptor createImage

List of usage examples for org.eclipse.jface.resource ImageDescriptor createImage

Introduction

In this page you can find the example usage for org.eclipse.jface.resource ImageDescriptor createImage.

Prototype

public Image createImage() 

Source Link

Document

Creates and returns a new SWT image for this image descriptor.

Usage

From source file:com.astra.ses.spell.gui.dialogs.ConfigDialog.java

License:Open Source License

/***************************************************************************
 * Constructor/*from  w w  w.  j a  v  a2 s.  c  om*/
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public ConfigDialog(Shell shell, IProcedure model) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_time.png");
    m_image = descr.createImage();
    m_model = model;
}

From source file:com.astra.ses.spell.gui.dialogs.ConfirmDialog.java

License:Open Source License

/***************************************************************************
 * Constructor/* w  w  w  .j av  a2 s.  com*/
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public ConfirmDialog(Shell shell, String msg) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_question.png");
    m_image = descr.createImage();
    m_msg = msg;
}

From source file:com.astra.ses.spell.gui.dialogs.ConnectionDialog.java

License:Open Source License

/***************************************************************************
 * Constructor// w w w.ja  v a 2s .c  om
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public ConnectionDialog(Shell shell) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/network.gif");
    m_image = descr.createImage();
    m_preferencesManager = new PreferencesManager();
    m_currentServer = -1;
    // Obtain the manager handlers
    if (s_cfg == null) {
        s_cfg = (ConfigurationManager) ServiceManager.get(ConfigurationManager.ID);
    }
    if (s_lstProxy == null) {
        s_lstProxy = (ServerProxy) ServiceManager.get(ServerProxy.ID);
    }
    if (s_ctxProxy == null) {
        s_ctxProxy = (ContextProxy) ServiceManager.get(ContextProxy.ID);
    }
    ServerBridge.get().addServerListener(this);
    ServerBridge.get().addContextListener(this);
}

From source file:com.astra.ses.spell.gui.dialogs.ControlInfoDialog.java

License:Open Source License

/***************************************************************************
 * Constructor/*from w w w  .j a  v  a2  s .  c o  m*/
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public ControlInfoDialog(Shell shell, IProcedure proc) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_exec.png");
    m_image = descr.createImage();
    m_font = JFaceResources.getBannerFont();
    m_proc = proc;
}

From source file:com.astra.ses.spell.gui.dialogs.DefaultsDialog.java

License:Open Source License

/***************************************************************************
 * Constructor//from w ww  . j  av a2 s. com
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public DefaultsDialog(Shell shell, ExecutorDefaults executorDefaults) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_configuration.png");
    m_image = descr.createImage();
    m_executorDefaults = new ExecutorDefaults();
    m_executorDefaults.copyFrom(executorDefaults);

}

From source file:com.astra.ses.spell.gui.dialogs.DictionaryEditorDialog.java

License:Open Source License

/***************************************************************************
 * Constructor/*from   w ww .java 2  s .  c om*/
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public DictionaryEditorDialog(Shell shell, IProcedure model, String containerName, boolean canMergeFiles) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_exec.png");
    m_image = descr.createImage();
    m_font = JFaceResources.getBannerFont();
    m_procId = model.getProcId();
    m_containerName = containerName;
    m_canMergeFiles = canMergeFiles;

    m_varTable = null;
    m_fileTable = null;

    m_readOnly = (!model.getRuntimeInformation().getClientMode().equals(ClientMode.CONTROLLING));

    if (m_readOnly)
        m_canMergeFiles = false;

    loadData(false);

    m_fileContainer = new DataContainer(model.getProcId(), "");
}

From source file:com.astra.ses.spell.gui.dialogs.DictionaryNameDialog.java

License:Open Source License

/***************************************************************************
 * Constructor//from  w  w w .j a va2 s . c  o  m
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public DictionaryNameDialog(Shell shell) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_configuration.png");
    m_dictNames = new ArrayList<String>();
    m_image = descr.createImage();
    m_selectedNameStr = null;
}

From source file:com.astra.ses.spell.gui.dialogs.ExecutorsDialog.java

License:Open Source License

/***************************************************************************
 * Constructor//from ww  w .  java  2  s .c o m
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public ExecutorsDialog(Shell shell) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_exec.png");
    m_image = descr.createImage();
    ProcedureBridge.get().addProcedureMonitor(this);
    if (s_procMgr == null) {
        s_procMgr = (ProcedureManager) ServiceManager.get(ProcedureManager.ID);
    }
    if (s_proxy == null) {
        s_proxy = (ContextProxy) ServiceManager.get(ContextProxy.ID);
    }
}

From source file:com.astra.ses.spell.gui.dialogs.GotoDialog.java

License:Open Source License

/***************************************************************************
 * Constructor//from ww w  .jav a2s. c o  m
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public GotoDialog(Shell shell) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_question.png");
    m_image = descr.createImage();
    m_target = null;
    m_isLabel = false;
}

From source file:com.astra.ses.spell.gui.dialogs.InputFileViewerDialog.java

License:Open Source License

/***************************************************************************
 * Constructor//from w  w  w .  j  a v a  2  s . c o  m
 * 
 * @param shell
 *            The parent shell
 **************************************************************************/
public InputFileViewerDialog(Shell shell) {
    super(shell);
    // Obtain the image for the dialog icon
    ImageDescriptor descr = Activator.getImageDescriptor("icons/dlg_exec.png");
    m_image = descr.createImage();
    m_font = JFaceResources.getBannerFont();
    m_container = new DataContainer("<none>", "");
}