Examples of RunnableEx


Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

        JavaInfoUtils.scheduleOpenNode(component, invocation);
        return;
      }
    }
    // generate new addListener()
    ExecutionUtils.run(component, new RunnableEx() {
      public void run() throws Exception {
        MethodInvocation invocation =
            component.addMethodInvocation(
                ADD_LISTENER_SIGNATURE,
                "com.extjs.gxt.ui.client.event.Events."
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  // Execution
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void execute() {
    ExecutionUtils.runIgnore(new RunnableEx() {
      public void run() throws Exception {
        DeviceInfo device = DeviceManager.getDevice(m_id);
        device.setName(m_name);
        device.setDisplayBounds(m_displayBounds);
        // update image
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  // Execution
  //
  ////////////////////////////////////////////////////////////////////////////
  @Override
  public void execute() {
    ExecutionUtils.runIgnore(new RunnableEx() {
      public void run() throws Exception {
        CategoryInfo category = DeviceManager.getCategory(m_categoryId);
        if (category != null) {
          Image image = SwtResourceManager.getImage(m_imagePath);
          category.addDevice(new DeviceInfo(m_id, m_name, m_imagePath, image, m_displayBounds));
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

        }
      }
    }

    private boolean decorateChild_childOnly(final EditPart child) {
      return ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          Constructor<?> constructor = m_policyClass.getConstructors()[0];
          EditPolicy editPolicy = (EditPolicy) constructor.newInstance(child.getModel());
          child.installEditPolicy(SELECTION_ID, editPolicy);
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

        }
      });
    }

    private void decorateChild_layoutAndChild(final EditPart child) {
      ExecutionUtils.runIgnore(new RunnableEx() {
        public void run() throws Exception {
          Constructor<?> constructor = m_policyClass.getConstructors()[0];
          EditPolicy editPolicy = (EditPolicy) constructor.newInstance(m_layout, child.getModel());
          child.installEditPolicy(SELECTION_ID, editPolicy);
        }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

   * @return the {@link List} of {@link CategoryInfo}'s existing in configuration.
   */
  public static List<CategoryInfo> getCategories() {
    if (m_caterogies == null) {
      m_caterogies = Lists.newArrayList();
      ExecutionUtils.runLog(new RunnableEx() {
        public void run() throws Exception {
          // load from plugins
          List<IConfigurationElement> categoryElements =
              ExternalFactoriesHelper.getElements(POINT_DEVICES, "category");
          for (IConfigurationElement categoryElement : categoryElements) {
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  /**
   * Applies commands for modifying palette.
   */
  private static void commandsApply() {
    ExecutionUtils.runIgnore(new RunnableEx() {
      public void run() throws Exception {
        commandsApplyEx();
      }
    });
  }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

          @Override
          public void startElement(String uri,
              String localName,
              final String name,
              final Attributes attributes) {
            ExecutionUtils.runIgnore(new RunnableEx() {
              public void run() throws Exception {
                commandsApplySingleEx(name, attributes);
              }
            });
          }
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  /**
   * Adds given {@link Command} to the list (and executes it).
   */
  public static void commandsAdd(final Command command) {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        command.execute();
        command.addToCommandList(m_commands);
      }
    });
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.execution.RunnableEx

  /**
   * Stores current {@link Command}'s {@link List}.
   */
  public static void commandsWrite() {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        File commandsFile = getCommandsFile();
        PrintWriter writer = new PrintWriter(new FileOutputStream(commandsFile));
        try {
          writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
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.