Package org.eclipse.wb.internal.core.utils.execution

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


  //
  // ILaunchConfigurationListener
  //
  ////////////////////////////////////////////////////////////////////////////
  public void launchConfigurationAdded(final ILaunchConfiguration configuration) {
    ExecutionUtils.runLog(new RunnableEx() {
      public void run() throws Exception {
        configureAdded(configuration);
      }
    });
  }
View Full Code Here


    public String getLabel() {
      return "Import GWT module " + m_moduleNameToImport;
    }

    public void run(final IMarker marker) {
      ExecutionUtils.runLog(new RunnableEx() {
        public void run() throws Exception {
          ModuleDescription moduleDescription = Utils.getSingleModule(marker.getResource());
          DefaultModuleProvider.modify(moduleDescription, new ModuleModification() {
            public void modify(ModuleElement moduleElement) throws Exception {
              InheritsElement inheritsElement = new InheritsElement();
View Full Code Here

  /**
   * This method is used by description based "Edge" property.
   */
  void setEdge(final WidgetInfo widget, final Object edge) throws Exception {
    if (edge instanceof String) {
      ExecutionUtils.run(this, new RunnableEx() {
        public void run() throws Exception {
          setEdge(widget, (String) edge);
        }
      });
    }
View Full Code Here

    // check for existing invocation
    {
      final Expression expression = getExpression(javaInfo);
      if (expression != null) {
        if (source != null) {
          ExecutionUtils.run(javaInfo, new RunnableEx() {
            public void run() throws Exception {
              editor.replaceExpression(expression, source);
            }
          });
        } else {
          ExecutionUtils.run(javaInfo, new RunnableEx() {
            public void run() throws Exception {
              editor.removeEnclosingStatement(expression);
            }
          });
        }
        return true;
      }
    }
    // add new invocation
    if (source != null) {
      ExecutionUtils.run(javaInfo, new RunnableEx() {
        public void run() throws Exception {
          if (javaInfo.getAssociation() instanceof InvocationAssociation) {
            StatementTarget target = getTarget(javaInfo);
            String arguments = TemplateUtils.format("{0}, {1}", javaInfo, source);
            m_panel.addMethodInvocation(target, m_methodSignature, arguments);
View Full Code Here

    /**
     * Configures {@link ColumnInfo} to don't be sortable and removes {@link Comparator}.
     */
    protected void removeInvocation(final MethodInvocation invocation) {
      ExecutionUtils.run(m_this, new RunnableEx() {
        public void run() throws Exception {
          AstEditor editor = m_this.getEditor();
          getPropertyByTitle("sortable").setValue(UNKNOWN_VALUE);
          editor.removeEnclosingStatement(invocation);
        }
View Full Code Here

     *
     * @return the added {@link MethodInvocation}.
     */
    private MethodInvocation addInvocation() {
      final AtomicReference<MethodInvocation> result = new AtomicReference<MethodInvocation>();
      ExecutionUtils.run(m_this, new RunnableEx() {
        public void run() throws Exception {
          String rowTypeName = getRowTypeName();
          String listHandlerName = getListHandlerName(rowTypeName);
          // enable sorting
          getPropertyByTitle("sortable").setValue(true);
View Full Code Here

    } else {
      m_loggerErrorMessages = "No hosted mode.";
    }
    // try to dispose
    if (!isDisposed()) {
      ExecutionUtils.runLog(new RunnableEx() {
        public void run() throws Exception {
          disposeWindowClass();
          HttpServer.getInstance().removeResourceProvider(m_moduleBaseURL);
          m_hostModeSupport.dispose();
        }
View Full Code Here

    return getSemanticProperty().get();
  }

  @Override
  public final void setValue(final Object value) throws Exception {
    ExecutionUtils.run(m_object, new RunnableEx() {
      public void run() throws Exception {
        if (value instanceof String) {
          getSemanticProperty().set(null, (String) value);
        } else {
          getSemanticProperty().clear();
View Full Code Here

    return false;
  }

  @Override
  public void setValue(final Object value) throws Exception {
    ExecutionUtils.run(m_object, new RunnableEx() {
      public void run() throws Exception {
        for (Property property : getProperties()) {
          property.setValue(value);
        }
      }
View Full Code Here

        }
      }
    }
    // if has modified CSS files, ask Browser for reload
    if (modified) {
      ExecutionUtils.runLog(new RunnableEx() {
        public void run() throws Exception {
          state.getHostModeSupport().invokeNativeVoid(
              "__reload_css",
              ArrayUtils.EMPTY_CLASS_ARRAY,
              ArrayUtils.EMPTY_OBJECT_ARRAY);
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.utils.execution.RunnableEx

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.