Examples of ApplicationDescriptor


Examples of juzu.impl.plugin.application.descriptor.ApplicationDescriptor

        JSON applications = config.getJSON("application");
        if (applications.names().size() != 1) {
          throw new RuntimeException("Was expecting application size to be 1 instead of " + applications);
        }
        String packageFQN = applications.names().iterator().next();
        ApplicationDescriptor descriptor = ApplicationDescriptor.create(cl, packageFQN);
        // For now we don't resolve anything...
        ResourceResolver resourceResolver = new ResourceResolver() {
          public URL resolve(String uri) {
            return null;
          }
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

    mCodeTextView = new LabelField("", FIELD_VCENTER);
    mCodeArea.add(icon);
    mCodeArea.add(mCodeTextView);

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);

    add(mCheckCodeTextView);
    add(mCodeArea);
    add(mVersionText);
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

* Checks for software updates and invokes a callback if one is found.
*/
public class UpdateTask extends Thread {

  private static String getApplicationVersion() {
    ApplicationDescriptor app = ApplicationDescriptor
        .currentApplicationDescriptor();
    return app.getVersion();
  }
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

  private static String getPlatformVersion() {
    ApplicationManager manager = ApplicationManager.getApplicationManager();
    ApplicationDescriptor[] applications = manager.getVisibleApplications();
    for (int i = 0; i < applications.length; i++) {
      ApplicationDescriptor application = applications[i];
      String moduleName = application.getModuleName();
      if (moduleName.equals("net_rim_bb_ribbon_app")) {
        return application.getVersion();
      }
    }
    return null;
  }
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

    mCancelButton.setChangeListener(this);
    buttons.add(mSubmitButton);
    buttons.add(mClearButton);
    buttons.add(mCancelButton);

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);
    add(manager);
    add(buttons);
    add(mVersionText);
  }
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

    mUserList = new PinListField();
    mUserAdapter = new PinListFieldCallback(mUsers);
    setAdapter();

    ApplicationDescriptor applicationDescriptor = ApplicationDescriptor
        .currentApplicationDescriptor();
    String version = applicationDescriptor.getVersion();
    mVersionText = new LabelField(version, FIELD_RIGHT | FIELD_BOTTOM);
    mStatusText = new LabelField("", FIELD_HCENTER | FIELD_BOTTOM);

    add(mEnterPinTextView);
    add(mUserList);
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

    // 1. Register folders and application descriptors ----------------------
    ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
   
    // Some context menu items don't need a GUI (e.g. an item for deleting a
    // message) and will be run in the current daemon application.
    ApplicationDescriptor appDescr = new ApplicationDescriptor(ApplicationDescriptor.currentApplicationDescriptor(),new String[]{});
   
    CustomMessageStore messages = CustomMessageStore.getInstance(GUID);
    ReadableListImpl inboxMessages = messages.getInboxMessages();
   
    ApplicationMessageFolder inbox = reg.registerFolder(CustomMessage.INBOX_FOLDER_ID, _folderName, inboxMessages);
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

    }
    }
   
    public static void registerType(int type, String newImage, String readImage){
      ApplicationMessageFolderRegistry reg = ApplicationMessageFolderRegistry.getInstance();
      ApplicationDescriptor appDescr = new ApplicationDescriptor(ApplicationDescriptor.currentApplicationDescriptor(),new String[]{});
     
     
    // 2. Register message icons -------------------------------------------
      newImage = newImage.length()==0?MessageListNamespace.getInstance().getDefaultNewImage():newImage;
      readImage = readImage.length()==0?MessageListNamespace.getInstance().getDefaultReadImage():readImage;
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

        _daemonStore.getCommandQueue().removeAllElements(); // clear all commands

        _commandListener = new CommandListener();
        _commandListener.start();
       
        _uiAppDesc = new ApplicationDescriptor( ApplicationDescriptor.currentApplicationDescriptor(), PushPersistentStore.getAppDescArgs() );
       
        EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), "PushDaemon is started.".getBytes() );
    }
View Full Code Here

Examples of net.rim.device.api.system.ApplicationDescriptor

        EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Check if application is running" ).getBytes(),
                EventLogger.DEBUG_INFO );
        if( !ApplicationRegistry.isAppRunning() ) {
            EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Launch application" ).getBytes(),
                    EventLogger.DEBUG_INFO );
            ApplicationDescriptor newAppDesc = new ApplicationDescriptor( _uiAppDesc, new String[] { _entryPage } );
            try {
                ApplicationManager.getApplicationManager().runApplication( newAppDesc, false );
            } catch( ApplicationManagerException e ) {
                EventLogger.logEvent( WidgetProperties.getInstance().getGuid(), ( "Error launching UI" ).getBytes(),
                        EventLogger.ERROR );
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.