Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.Action.run()


                    "Comment.",
                    editor,
                    ITextOperationTarget.PREFIX);
            }

            action.run();
        }
        catch (BadLocationException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here


                            .setText(selectedSource
                                .getId());
                        switchVariantAction
                            .setToolTipText(selectedSource
                                .getId());
                        switchVariantAction.run();
                      }
                    });
              }
            }
          }
View Full Code Here

              /* (non-Javadoc)
               * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
               */
              @Override
              protected IStatus run(IProgressMonitor monitor) {
                if (a.isEnabled()) a.run();
                return Status.OK_STATUS;
              }
            };
            job.schedule();
          }
View Full Code Here

    viewer.expandToLevel(element, 1);
    if (element instanceof HasDoubleClickAction) {
      HasDoubleClickAction hdc = (HasDoubleClickAction) element;
      Action doubleClickAction = hdc.getDoubleClickAction();
      if (doubleClickAction != null) {
        doubleClickAction.run();
      }
    } else if (element instanceof Fabric) {
      final Fabric fabric = (Fabric) element;
      UIJob job = new UIJob("Connect to Fabric: " + fabric.toString()) {
       
View Full Code Here

                    public void run() {
                        delegate.run(this);
                    }
                };
                proxy.run();
            } else
                // we could not create the class.
                return false;
            // ran action successfully. Now set intro intro standby if needed.
            if (standbyState == null)
View Full Code Here

    }
  }

  public boolean open(String id) {
    Action openAction = new OpenCheatSheetAction(id);
    openAction.run();
    return true;
  }
 
  private static boolean isExtensionValid(String fileName, String id, String pluginId) {
    if (fileName.indexOf('\\') != -1) {
View Full Code Here

            return;
          }
          if(fTable.getSelection().length != 0) {
            Action a = createOpenEditorAction(getSelectedText());
            if(a != null) {
              a.run();
            }
          }
        }
      });
View Full Code Here

    upButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        StructuredTextViewer textView = getConfigEditor().getTextViewer();
        Action action = new RaiseNodeAction(treeViewer, xmlProcessor, textView);
        action.run();
      }
    });
    upButton.setEnabled(false);

    downButton = toolkit.createButton(client,
View Full Code Here

    downButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        StructuredTextViewer textView = getConfigEditor().getTextViewer();
        Action action = new LowerNodeAction(treeViewer, xmlProcessor, textView);
        action.run();
      }
    });
    downButton.setEnabled(false);
  }
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.