Examples of PaletteListener


Examples of org.eclipse.gef.palette.PaletteListener

      root.add(group);
    }
   
    viewer.setPaletteRoot(root);
   
    viewer.addPaletteListener(new PaletteListener(){
      public void activeToolChanged(PaletteViewer palette, ToolEntry tool){
        ToolEntryEditPart part = (ToolEntryEditPart)palette.getEditPartRegistry().get(tool);
        if(part!=null){
          // get the active editor
          IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.