Examples of Resources


Examples of net.sourceforge.processdash.i18n.Resources

        if (unrepairedCount == 0)
            return true;

        // If there are unrepaired files, display an error dialog
        ProcessDashboard.dropSplashScreen();
        Resources r = Resources.getDashBundle("ProcessDashboard.Errors");
        String message = getCorruptFileStr() + "\n" + r.getString("Lost_Data_Message");
        String title = r.getString("Lost_Data_Title");
        int response = JOptionPane.showConfirmDialog(dialogParent, message,
            title, JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE);

        return response == JOptionPane.YES_OPTION;
    }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.fw.util.Resources

   public UndoHandlerImpl(IApplication application, ISQLEntryPanel entry)
   {
      if (!entry.hasOwnUndoableManager())
      {
         SquirrelDefaultUndoManager undoManager = new SquirrelDefaultUndoManager();
         Resources res = application.getResources();
         _undoAction = new UndoAction(application, undoManager);
         _redoAction = new RedoAction(application, undoManager);

         JComponent comp = entry.getTextComponent();
         comp.registerKeyboardAction(_undoAction, res.getKeyStroke(_undoAction),
            JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
         comp.registerKeyboardAction(_redoAction, res.getKeyStroke(_redoAction),
            JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);

         entry.setUndoManager(undoManager);
      }
      else
View Full Code Here

Examples of nl.siegmann.epublib.domain.Resources

   * @param lazyLoadedTypes a list of the MediaType to load lazily
   * @return this Book without loading all resources into memory.
   * @throws IOException
   */
  public Book readEpubLazy(ZipFile zipFile, String encoding, List<MediaType> lazyLoadedTypes ) throws IOException {
    Resources resources = ResourcesLoader.loadResources(zipFile, encoding, lazyLoadedTypes);
    return readEpub(resources);
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.configuration.Resources

                          String host,
                          double cpu,
                          Amount<Long, Data> ram,
                          Amount<Long, Data> disk,
                          int numPorts) {
    List<Resource> resources = new Resources(cpu, ram, disk, numPorts).toResourceList();
    Offer.Builder builder = Offer.newBuilder();
    builder.getIdBuilder().setValue(offerId);
    builder.getFrameworkIdBuilder().setValue("framework-id");
    builder.getSlaveIdBuilder().setValue(hostToId(host));
    builder.setHostname(host);
View Full Code Here

Examples of org.apache.avalon.excalibur.i18n.Resources

    public void testClassResources()
    {
        try
        {
            final Resources resources =
                ResourceManager.getClassResources( getClass() );

            resources.getBundle();
        }
        catch( final MissingResourceException mre )
        {
            fail( "Unable to find class resource for class " + getClass() );
        }
View Full Code Here

Examples of org.apache.etch.util.Resources

    }

    public void sessionAccepted( SocketChannel connection )
      throws Exception
    {
      Resources r = new Resources( resources );
      r.put( "connection", connection );
     
      ValueFactory vf = session.newValueFactory( uri );
      r.put( Transport.VALUE_FACTORY, vf );
     
      TransportMessage t = newTransport( uri, r );
     
      session.newServer( t, uri, r );
    }
View Full Code Here

Examples of org.apache.felix.metatype.internal.l10n.Resources

        if ( ocd == null )
        {
            return null;
        }

        Resources resources = BundleResources.getResources( bundle, localePrefix, locale );
        return new LocalizedObjectClassDefinition( bundle, ocd, resources );
    }
View Full Code Here

Examples of org.apache.openejb.config.sys.Resources

    public static void readResourcesXml(Module module) {
        URL url = getUrl(module, "resources.xml");
        if (url != null) {
            try {
                Resources openejb = JaxbOpenejb.unmarshal(Resources.class, IO.read(url));
                module.initResources(openejb);

                // warn if other entities than resources were declared
                if (openejb.getContainer().size() > 0) {
                    logger.warning("containers can't be declared at module level");
                }
                if (openejb.getConnectionManager() != null) {
                    logger.warning("connection manager can't be declared at module level");
                }
                if (openejb.getJndiProvider().size() > 0) {
                    logger.warning("jndi providers can't be declared at module level");
                }
            } catch (Exception e) {
                logger.warning("can't read " + url.toString() + " to load resources for module " + module.toString(), e);
            }
View Full Code Here

Examples of org.apache.pivot.util.Resources

            public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
                try {
                    if (count == 2) {
                        TrackData trackData = (TrackData) tracksTableView.getSelectedRow();
                        BXMLSerializer wtkxSerializer = new BXMLSerializer();
                        EditTrackWindow window = (EditTrackWindow) wtkxSerializer.readObject(getClass().getResource("EditTrackWindow.bxml"),new Resources(resources, EditTrackWindow.class.getName()));
                        window.open(getDisplay(), getWindow(), trackData.track);
                        return true;
                    }
                } catch (IOException e) {
                    throw new RuntimeException(e);
View Full Code Here

Examples of org.apache.pivot.util.Resources

            public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
                try {
                    if (count == 2) {
                        Release release = (Release) releaseResultsTableView.getSelectedRow();
                        BXMLSerializer wtkxSerializer = new BXMLSerializer();
                        EditReleaseWindow window = (EditReleaseWindow) wtkxSerializer.readObject(getClass().getResource("EditReleaseWindow.bxml"),new Resources(resources,EditReleaseWindow.class.getName()));
                        window.open(getDisplay(), getWindow(), release);
                        return true;
                    }
                } catch (IOException e) {
                    throw new RuntimeException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.