@Test public void testLoadReportFromRepositoryAction() { LoadReportFromRepositoryAction repoAction = new LoadReportFromRepositoryAction(); assertEquals( Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ), repoAction.getValue( Action.NAME ) ); assertEquals( Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ), repoAction.getValue( Action.SHORT_DESCRIPTION ) ); assertEquals( IconLoader.getInstance().getOpenIcon(), repoAction.getValue( Action.SMALL_ICON ) ); assertEquals( Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ), repoAction.getValue( Action.ACCELERATOR_KEY ) ); }
public LoadReportFromRepositoryAction() { putValue( Action.NAME, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ) ); putValue( Action.SMALL_ICON, IconLoader.getInstance().getOpenIcon() ); putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ) ); }
LoadReportFromRepositoryAction extends AbstractDesignerContextAction { public LoadReportFromRepositoryAction() { putValue( Action.NAME, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ) ); putValue( Action.SMALL_ICON, IconLoader.getInstance().getOpenIcon() ); putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ) ); } }
LoadReportFromRepositoryAction extends AbstractDesignerContextAction { public LoadReportFromRepositoryAction() { putValue( Action.NAME, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ) ); putValue( Action.SMALL_ICON, IconLoader.getInstance().getOpenIcon() ); putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ) ); } LoadReportFromRepositoryAction(); }
LoadReportFromRepositoryAction extends AbstractDesignerContextAction { public LoadReportFromRepositoryAction() { putValue( Action.NAME, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ) ); putValue( Action.SMALL_ICON, IconLoader.getInstance().getOpenIcon() ); putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ) ); } LoadReportFromRepositoryAction(); void actionPerformed( final ActionEvent e ); }
LoadReportFromRepositoryAction extends AbstractDesignerContextAction { public LoadReportFromRepositoryAction() { putValue( Action.NAME, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "LoadReportFromRepositoryAction.Description" ) ); putValue( Action.SMALL_ICON, IconLoader.getInstance().getOpenIcon() ); putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getOptionalKeyStroke( "LoadReportFromRepositoryAction.Accelerator" ) ); } LoadReportFromRepositoryAction(); void actionPerformed( final ActionEvent e );  }