Package net.sourceforge.squirrel_sql.client.resources

Examples of net.sourceforge.squirrel_sql.client.resources.SquirrelResources$IMenuResourceKeys


    editWhereCols.setApplication(this);

    // TODO: Make properties file Application.properties so we can use class
    // name to generate properties file name.
    _resources = new SquirrelResources(SquirrelResources.BUNDLE_BASE_NAME);
    _prefs = SquirrelPreferences.load();
      _desktopStyle = new DesktopStyle(_prefs);
    Locale.setDefault(constructPreferredLocale(_prefs));
    preferencesHaveChanged(null);
    _prefs.addPropertyChangeListener(new PropertyChangeListener()
View Full Code Here


      if(0 < filterhint.length())
      {

         _filterHint = new JLabel(filterhint);
         final SquirrelResources rsrc = _session.getApplication().getResources();
         final ImageIcon icon = rsrc.getIcon(SquirrelResources.IImageNames.FILTER);
         _filterHint.setIcon(icon);
      }
      else
      {
         _filterHint = null;
View Full Code Here


   private void createStandardEntryAreaMenuItems()
   {
      JMenuItem item;
      SquirrelResources resources = getSession().getApplication().getResources();


      Action toolsPopupAction = _panel.getSession().getApplication().getActionCollection().get(ToolsPopupAction.class);
      item = getSQLEntryPanel().addToSQLEntryAreaMenu(toolsPopupAction);
      resources.configureMenuItem(toolsPopupAction, item);

      if(_panel.isInMainSessionWindow())
      {
         Action vioAction = _panel.getSession().getApplication().getActionCollection().get(ViewObjectAtCursorInObjectTreeAction.class);
         item = getSQLEntryPanel().addToSQLEntryAreaMenu(vioAction);
         resources.configureMenuItem(vioAction, item);
      }

   }
View Full Code Here

        private static final long serialVersionUID = 1L;

        CopyLastButton(IApplication app)
    {
      super();
      final SquirrelResources rsrc = app.getResources();
      final ImageIcon icon = rsrc.getIcon(SquirrelResources.IImageNames.COPY_SELECTED);
      setIcon(icon);
            // i18n[SQLPanel.copylastbutton.hint=Copy current SQL history to entry area]
      String hint = s_stringMgr.getString("SQLPanel.copylastbutton.hint");
            setToolTipText(hint);
      Dimension dm = getPreferredSize();
View Full Code Here

  {
        private static final long serialVersionUID = 1L;

        ShowHistoryButton(IApplication app)
    {
         final SquirrelResources rsrc = app.getResources();
         final ImageIcon icon = rsrc.getIcon(SquirrelResources.IImageNames.SQL_HISTORY);
         setIcon(icon);
         // i18n[SQLPanel.openSqlHistory.hint=Open SQL History]
         String hint = s_stringMgr.getString("SQLPanel.openSqlHistory.hint");
         setToolTipText(hint);
         Dimension dm = getPreferredSize();
View Full Code Here

     replay(result);
     return result;
  }

  public static SquirrelResources getEasyMockSquirrelResources() {
     SquirrelResources resources = EasyMock.createMock(SquirrelResources.class);
     resources.setupAction(isA(Action.class), EasyMock.anyBoolean());
     EasyMock.expectLastCall().times(1, 10000);
     replay(resources);
     return resources;
  }
View Full Code Here

     if (nice) {
        result = createNiceMock(IApplication.class);
     } else {
        result = createMock(IApplication.class);
     }
     SquirrelResources resoures = getEasyMockSquirrelResources();
     SessionProperties props = getEasyMockSessionProperties(";", "--", true);
     SquirrelPreferences prefs = getEasyMockSquirrelPreferences(props);
     expect(result.getMainFrame()).andReturn(null).anyTimes();
     expect(result.getResources()).andReturn(resoures).anyTimes();
     expect(result.getSquirrelPreferences()).andReturn(prefs).anyTimes();
View Full Code Here

     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        ApplicationArguments.initialize(new String[] {});
        SquirrelResources _resources =
            new SquirrelResources("net.sourceforge.squirrel_sql.client.resources.squirrel");
        SquirrelPreferences _prefs = SquirrelPreferences.load();
       

        new SplashScreen(_resources, 15, _prefs);

View Full Code Here

    MockSessionManager sessionHandler = null;
    FontInfoStore fontInfoStore = null;
   
    public MockApplication() {
        resource =
            new SquirrelResources("net.sourceforge.squirrel_sql.client.resources.squirrel");
        prefs = SquirrelPreferences.load();
        threadPool = new TaskThreadPool();
        pluginManager = new PluginManager(this);
        actions = new ActionCollection(this);
        history = new SQLHistory();
View Full Code Here

    MockSessionManager sessionHandler = null;
    FontInfoStore fontInfoStore = null;
   
    public MockApplication() {
        resource =
            new SquirrelResources("net.sourceforge.squirrel_sql.client.resources.squirrel");
        prefs = SquirrelPreferences.load();
        threadPool = new TaskThreadPool();
        pluginManager = new PluginManager(this);
        actions = new ActionCollection(this);
        history = new SQLHistory();
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.resources.SquirrelResources$IMenuResourceKeys

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.