public void initialize(PlugInContext context) throws Exception {
   WorkbenchContext wbContext = context.getWorkbenchContext();
   WorkbenchFrame frame = wbContext.getWorkbench().getFrame().getTableEditor();
   wbContext.getWorkbench().getFrame().getEditionTableToolBar().addPlugIn(this, btn, context);
   context
       .getFeatureInstaller()
       .addPopupMenuItem(
           frame,
           this,
           new String[] {Names.POPUP_TABLE_UP_PATH1},
           Names.POPUP_TABLE_UP_GROUP,
           false,
           OrbisGISIcon.REVERT,
           wbContext);
 }
 @Override
 public void initialize(PlugInContext context) throws Exception {
   WorkbenchContext wbContext = context.getWorkbenchContext();
   WorkbenchFrame frame = wbContext.getWorkbench().getFrame().getGeocatalog();
   context
       .getFeatureInstaller()
       .addPopupMenuItem(
           frame,
           this,
           new String[] {Names.POPUP_TOC_SAVE_PATH1},
           Names.POPUP_TOC_INACTIVE_GROUP,
           false,
           OrbisGISIcon.SAVE,
           wbContext);
 }
 public void createPlugInContext(
     JComponent c, String id, ImageIcon icon, String[] editors, WorkbenchContext context) {
   this.component = c;
   this.id = id;
   context
       .getWorkbench()
       .getFrame()
       .getViews()
       .add(new ViewDecorator(this, id, icon, (editors == null) ? new String[0] : editors));
   if (plugInContext == null) {
     plugInContext = context.createPlugInContext(this);
   }
   if (!context.getViewsPlugInObservers().contains(this)) {
     context.getViewsPlugInObservers().add(this);
   }
 }
Exemplo n.º 4
0
 public void initialize(PlugInContext context) throws Exception {
   WorkbenchContext wbcontext = context.getWorkbenchContext();
   wbcontext.getWorkbench().getFrame().getEditionMapToolBar().addPlugIn(this, btn, context);
 }