@Test public void testPublishToServerAction() { PublishToServerAction publishAction = new PublishToServerAction(); assertNotNull( publishAction ); assertEquals( Messages.getInstance().getString( "PublishToServerAction.Text" ), publishAction.getValue( Action.NAME ) ); assertEquals( Messages.getInstance().getString( "PublishToServerAction.Description" ), publishAction.getValue( Action.SHORT_DESCRIPTION ) ); assertEquals( Messages.getInstance().getString( "PublishToServerAction.Description" ), publishAction.getValue( Action.SHORT_DESCRIPTION ) ); assertNotNull( publishAction.getValue( Action.SMALL_ICON ) ); assertEquals( Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ), publishAction.getValue( Action.ACCELERATOR_KEY ) ); }
public PublishToServerAction() { putValue( Action.NAME, Messages.getInstance().getString( "PublishToServerAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "PublishToServerAction.Description" ) ); final URL url = PublishToServerAction.class .getResource( "/org/pentaho/reporting/designer/extensions/pentaho/repository/resources/PublishToServerIcon.png" ); if ( url != null ) { putValue( Action.SMALL_ICON, new ImageIcon( url ) ); } putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ) ); }
PublishToServerAction extends AbstractReportContextAction { public PublishToServerAction() { putValue( Action.NAME, Messages.getInstance().getString( "PublishToServerAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "PublishToServerAction.Description" ) ); final URL url = PublishToServerAction.class .getResource( "/org/pentaho/reporting/designer/extensions/pentaho/repository/resources/PublishToServerIcon.png" ); if ( url != null ) { putValue( Action.SMALL_ICON, new ImageIcon( url ) ); } putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ) ); } }
PublishToServerAction extends AbstractReportContextAction { public PublishToServerAction() { putValue( Action.NAME, Messages.getInstance().getString( "PublishToServerAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "PublishToServerAction.Description" ) ); final URL url = PublishToServerAction.class .getResource( "/org/pentaho/reporting/designer/extensions/pentaho/repository/resources/PublishToServerIcon.png" ); if ( url != null ) { putValue( Action.SMALL_ICON, new ImageIcon( url ) ); } putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ) ); } PublishToServerAction(); }
PublishToServerAction extends AbstractReportContextAction { public PublishToServerAction() { putValue( Action.NAME, Messages.getInstance().getString( "PublishToServerAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "PublishToServerAction.Description" ) ); final URL url = PublishToServerAction.class .getResource( "/org/pentaho/reporting/designer/extensions/pentaho/repository/resources/PublishToServerIcon.png" ); if ( url != null ) { putValue( Action.SMALL_ICON, new ImageIcon( url ) ); } putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ) ); } PublishToServerAction(); void actionPerformed( final ActionEvent e ); }
PublishToServerAction extends AbstractReportContextAction { public PublishToServerAction() { putValue( Action.NAME, Messages.getInstance().getString( "PublishToServerAction.Text" ) ); putValue( Action.SHORT_DESCRIPTION, Messages.getInstance().getString( "PublishToServerAction.Description" ) ); final URL url = PublishToServerAction.class .getResource( "/org/pentaho/reporting/designer/extensions/pentaho/repository/resources/PublishToServerIcon.png" ); if ( url != null ) { putValue( Action.SMALL_ICON, new ImageIcon( url ) ); } putValue( Action.ACCELERATOR_KEY, Messages.getInstance().getKeyStroke( "PublishToServerAction.Accelerator" ) ); } PublishToServerAction(); void actionPerformed( final ActionEvent e );  }