コード例 #1
0
 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);
 }
コード例 #2
0
 @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);
 }