Examples of register()


Examples of org.eclipse.dltk.console.ScriptConsoleServer.register()

  public static void runDefaultRutaInterpreter(RutaInterpreter interpreter) throws CoreException,
          IOException {
    ScriptConsoleServer server = ScriptConsoleServer.getInstance();

    String id = server.register(interpreter);
    String port = Integer.toString(server.getPort());

    String[] args = new String[] { "127.0.0.1", port, id };

    IExecutionEnvironment exeEnv = (IExecutionEnvironment) EnvironmentManager.getLocalEnvironment()

Examples of org.eclipse.e4.xwt.javabean.ValueConvertorRegister.register()

  public void registerConvertor(IConverter converter) {
    Class<?> source = (Class<?>) converter.getFromType();
    Class<?> target = (Class<?>) converter.getToType();
    ValueConvertorRegister convertorRegister = (ValueConvertorRegister)
        getService(ValueConvertorRegister.class);
    convertorRegister.register(source, target, converter);
  }

  public void registerConvertor(Class<?> converter, String methodName) {
    try {
      Method method = converter.getDeclaredMethod(methodName);

Examples of org.eclipse.jface.text.IEditingSupportRegistry.register()

      if (target != null)
        target.beginCompoundChange();

      if (fViewer instanceof IEditingSupportRegistry) {
        IEditingSupportRegistry registry= (IEditingSupportRegistry) fViewer;
        registry.register(helper);
      }


      if (p instanceof ICompletionProposalExtension2 && fViewer != null) {
        ICompletionProposalExtension2 e= (ICompletionProposalExtension2) p;

Examples of org.eclipse.orion.internal.server.core.metastore.SimpleMetaStoreUserPropertyCache.register()

  public void testAddAllUsers() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add(UserConstants2.USER_NAME);
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered(UserConstants2.USER_NAME));

    // add some users to the cache
    String users[] = {"anthony", "ahunter", "anthonyh"};
    List<String> userList = new ArrayList<String>(Arrays.asList(users));

Examples of org.eclipse.rap.rwt.service.ResourceManager.register()

    loader.data = new ImageData[] {image.getImageData()};
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    loader.save(outputStream, SWT.IMAGE_PNG);
    ResourceManager manager = RWT.getResourceManager();
    String name = image.hashCode() + ".png";
    manager.register( name, new ByteArrayInputStream( outputStream.toByteArray() ) );
    return manager.getLocation( name );
  }
}

Examples of org.eclipse.sapphire.ui.swt.gef.contextbuttons.ContextButtonManager.register()

  public void activate() {
    if (!isActive()) {
      super.activate();
      getCastedModel().addPropertyChangeListener(this);
      ContextButtonManager contextButtonManager = getConfigurationManager().getDiagramEditor().getContextButtonManager();
      contextButtonManager.register(this);     
    }
  }

  @Override
  public void deactivate() {

Examples of org.eclipse.swtbot.swt.finder.finders.EventContextMenuFinder.register()

  }

  public SWTBotMenu contextMenu(String label) throws WidgetNotFoundException {
    EventContextMenuFinder finder = new EventContextMenuFinder();
    try {
      finder.register();
      notify(SWT.MenuDetect);
      Matcher<MenuItem> withMnemonic = withMnemonic(label);
      List<MenuItem> menus = finder.findMenus(withMnemonic);
      if (menus.isEmpty())
        throw new WidgetNotFoundException("Could not find a menu item");

Examples of org.eobjects.analyzer.beans.valuedist.ValueCountListImpl.register()

  public void testNoGrouping() throws Exception {
    ValueCountListImpl topValueCount = ValueCountListImpl.createFullList();
    for (int i = 0; i < 40; i++) {
      // 40 values with unique counts
      topValueCount.register(new ValueCount("v" + i, i + 1));
    }

    ValueDistributionResultSwingRendererGroupDelegate r = new ValueDistributionResultSwingRendererGroupDelegate("foo",
        50, 60);
    r.renderGroupResult(new ValueDistributionGroupResult(column.getName(), topValueCount, null, 0, 0, 0, 0));

Examples of org.exoplatform.json.JSONService.register()

      List<ApplicationCategory> appCategories = prService.getApplicationCategories(remoteUser, applicationType);
      ApplicationCategoryToJSONPlugin toJSON = new ApplicationCategoryToJSONPlugin();

      StringBuilder value = new StringBuilder();
      JSONService jsonService = new JSONService();
      jsonService.register(ApplicationCategory.class, toJSON);

      if (appCategories.size() < 1)
         return value;

      value.append("{\n").append("  applicationRegistry : {\n");

Examples of org.exoplatform.management.ManagementContext.register()

               {
                  LOG.warn("Cannot register the statistics");
               }
               else
               {
                  ctx.register(new JCRStatisticsManager());
               }
               STARTED = true;
            }
         }
      }
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.