/** * Returns the error icon for this an all derived editors. * * @return the error icon. */ protected Icon getErrorIcon() { if ( errorIcon == null ) { errorIcon = resources.getIcon( "default-editor.error-icon" ); //$NON-NLS-1$ } return errorIcon; }
public static Icon getIcon( final String key, final boolean large ) { return bundle.getIcon( key, large ); }
public static Icon getIcon( final String key ) { return bundle.getIcon( key ); }
public Icon getSmallIcon( final Locale locale, final String id ) { return getResourceBundleSupport( locale ).getIcon( id, false ); }
public Icon getLargeIcon( final Locale locale, final String id ) { return getResourceBundleSupport( locale ).getIcon( id, true ); }
/** * DefaultConstructor. */ protected SaveAction() { putValue( Action.NAME, getResources().getString( "action.save.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.save.small-icon" ) ); //$NON-NLS-1$ }
/** * DefaultConstructor. */ protected NewAction() { putValue( Action.NAME, getResources().getString( "action.new.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.new.small-icon" ) ); //$NON-NLS-1$ }
/** * DefaultConstructor. */ protected LoadAction() { putValue( Action.NAME, getResources().getString( "action.load.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.load.small-icon" ) ); //$NON-NLS-1$ }
/** * Defaultconstructor. */ private SaveAction() { putValue( Action.NAME, getResources().getString( "action.save.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.save.small-icon" ) ); //$NON-NLS-1$ }
/** * Defaultconstructor. */ private LoadAction() { putValue( Action.NAME, getResources().getString( "action.load.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.load.small-icon" ) ); //$NON-NLS-1$ }
/** * Defaultconstructor. */ private AddEntryAction() { putValue( Action.NAME, getResources().getString( "action.add-entry.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.add-entry.small-icon" ) ); //$NON-NLS-1$ }
/** * Defaultconstructor. */ private RemoveEntryAction() { putValue( Action.NAME, getResources().getString( "action.remove-entry.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.remove-entry.small-icon" ) ); //$NON-NLS-1$ }
/** * Defaultconstructor. */ private ImportAction() { putValue( Action.NAME, getResources().getString( "action.import.name" ) ); //$NON-NLS-1$ putValue( Action.SMALL_ICON, getResources().getIcon( "action.import.small-icon" ) ); //$NON-NLS-1$ setEnabled( configurationToEdit != null ); }