if ( item != null ) { final DatabaseMeta databaseMeta = (DatabaseMeta) selectionObject; item.setLabel( BaseMessages.getString( PKG, "Spoon.Menu.Popup.CONNECTIONS.ClearDBCache" ) final DatabaseMeta databaseMeta = (DatabaseMeta) selection; if ( databaseMeta.isShared() ) { item.setLabel( BaseMessages.getString( PKG, "Spoon.Menu.Popup.CONNECTIONS.UnShare" ) ); } else { item.setLabel( BaseMessages.getString( PKG, "Spoon.Menu.Popup.CONNECTIONS.Share" ) );
/** * Sets the text and enabled settings for the undo and redo menu items * * @param undoInterface * the object which holds the undo/redo information */ public void setUndoMenu( UndoInterface undoInterface ) { if ( shell.isDisposed() ) { return; } TransAction prev = undoInterface != null ? undoInterface.viewThisUndo() : null; TransAction next = undoInterface != null ? undoInterface.viewNextUndo() : null; // Set the menubar text and enabled flags XulMenuitem item = (XulMenuitem) mainSpoonContainer.getDocumentRoot().getElementById( UNDO_MENU_ITEM ); item.setLabel( prev == null ? UNDO_UNAVAILABLE : BaseMessages.getString( PKG, "Spoon.Menu.Undo.Available", prev.toString() ) ); item.setDisabled( prev == null ); item = (XulMenuitem) mainSpoonContainer.getDocumentRoot().getElementById( REDO_MENU_ITEM ); item.setLabel( next == null ? REDO_UNAVAILABLE : BaseMessages.getString( PKG, "Spoon.Menu.Redo.Available", next.toString() ) ); item.setDisabled( next == null ); }
item.setLabel( BaseMessages.getString( PKG, "TransGraph.PopupMenu.SnapToGrid" ) ); item.setAccesskey( "alt-home" );
item.setLabel( BaseMessages.getString( PKG, "JobGraph.PopupMenu.JobEntry.AllignDistribute.SnapToGrid" ) ); item.setAccesskey( "alt-home" ); miDisHop.setLabel( BaseMessages.getString( PKG, "JobGraph.PopupMenu.Hop.Disable" ) ); } else { miDisHop.setLabel( BaseMessages.getString( PKG, "JobGraph.PopupMenu.Hop.Enable" ) );
String label = messageBundle.getString( IMPORT_MSG_ID, displayName ); menuItem = (XulMenuitem) document.createElement( "menuitem" ); menuItem.setLabel( label ); menuItem.setCommand( getName() + ".launchNewUI(\"" + datasourceType + "\")" ); menuItem.setId( "import" + datasourceType ); String label = messageBundle.getString( PLUGIN_MSG_ID, displayName ); menuItem = (XulMenuitem) document.createElement( "menuitem" ); menuItem.setLabel( label ); menuItem.setCommand( getName() + ".launchNewUI(\"" + datasourceType + "\")" ); menuItem.setId( "plugin" + datasourceType );