Package org.eclipse.gef.palette

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

Related Classes of org.eclipse.gef.palette.PaletteListener

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.