Package net.sf.apptools.plugin

Examples of net.sf.apptools.plugin.PlugInException


    probeMaker = (ProbeMakerPlugIn) platform.getPlugInInstance(ProbeMakerPlugIn.class);   
    workbench = (SwingWorkbenchUI) platform.getPlugInInstance(SwingWorkbenchUI.class);
          
   
    if (probeMaker == null)
      throw new PlugInException("The ProbeMaker plugin could not be found"); //$NON-NLS-1$

    //Set icons for some actions
    ((AbstractUserAction) probeMaker.designProbesAppend).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(getClass(), "icons/designProbesAppend.gif", "Design and append probes")); //$NON-NLS-1$ //$NON-NLS-2$
    ((AbstractUserAction) probeMaker.designProbesReplace).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(getClass(),"icons/designProbesReplace.gif", "Design new probes")); //$NON-NLS-1$ //$NON-NLS-2$    
    ((AbstractUserAction) probeMaker.newProject).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(GUIUtils.class,"icons/new.gif", "New project")); //$NON-NLS-1$ //$NON-NLS-2$
    ((AbstractUserAction) probeMaker.openProject).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(GUIUtils.class,"icons/open.gif", "Open project")); //$NON-NLS-1$ //$NON-NLS-2$
    ((AbstractUserAction) probeMaker.importProject).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(GUIUtils.class,"icons/import.gif", "Import project")); //$NON-NLS-1$ //$NON-NLS-2$
    ((AbstractUserAction) probeMaker.saveProject).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(GUIUtils.class,"icons/save.gif", "Save project")); //$NON-NLS-1$ //$NON-NLS-2$
    ((AbstractUserAction) probeMaker.saveProjectAs).putValue(SwingUserAction.KEY_SWING_ICON,
        GUIUtils.getIcon(GUIUtils.class,"icons/saveAs.gif", "Save project as")); //$NON-NLS-1$ //$NON-NLS-2$

   
    probeMaker.addProjectListener(this);

    if (workbench == null)
      throw new PlugInException("The Workbench could not be found"); //$NON-NLS-1$

    workbench.addDataEditorFactory(new TemplateDataEditorFactory());

    //Check preferences that affect the UI
    //TODO Insert here any  changes to the UIO based on preferences
View Full Code Here

TOP

Related Classes of net.sf.apptools.plugin.PlugInException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.