Package org.eclipse.ui

Examples of org.eclipse.ui.ISelectionListener


        lastRepositoryChange = System.currentTimeMillis();
        scheduleRefresh(DEFAULT_REFRESH_DELAY);
      }
    };

    selectionChangedListener = new ISelectionListener() {
      public void selectionChanged(IWorkbenchPart part,
          ISelection selection) {
        if (!reactOnSelection)
          return;
View Full Code Here


    public ExecuteAnonymousController getExecuteAnonymousController() {
        return executeAnonymousController;
    }

    private void createSelectionListener() {
        fPostSelectionListener = new ISelectionListener() {
            public void selectionChanged(IWorkbenchPart part, ISelection selection) {
                IProject project = ContainerDelegate.getInstance().getServiceLocator().getProjectService().getProject(selection);
                if (project != null && ContainerDelegate.getInstance().getServiceLocator().getProjectService().isManagedProject(project)) {
                    executeAnonymousController.setProject(project);
                    if (!executeAnonymousViewComposite.isDisposed()) {
View Full Code Here

            fireSelectionChanged((ITextSelection) selection);
          }
        }
      };

      fPostSelectionListener = new ISelectionListener() {
        public void selectionChanged(IWorkbenchPart part,
            ISelection selection) {
          if (part == fPart && selection instanceof ITextSelection)
            firePostSelectionChanged((ITextSelection) selection);
        }
View Full Code Here

  }

  private void registerListener() {

    /* Listen on selection-changes */
    fSelectionListener = new ISelectionListener() {
      public void selectionChanged(IWorkbenchPart part, ISelection sel) {

        /* Only Track selections from the HeadlineControl */
        if (!part.equals(fFeedViewSite.getEditorSite().getPart()))
          return;
View Full Code Here

          update(CoolBarItem.STOP, null, null, true);
      }
    });

    /* Selection Listener across the Workbench */
    final ISelectionListener selectionListener = new ISelectionListener() {
      public void selectionChanged(IWorkbenchPart part, ISelection selection) {
        update(CoolBarItem.MARK_READ, selection, part, false);
        update(CoolBarItem.MOVE, selection, part, false);
        update(CoolBarItem.COPY, selection, part, false);
        update(CoolBarItem.STICKY, selection, part, false);
View Full Code Here

    ISelectionService service = iwindow.getSelectionService();
    if (service == null) {
      return;
    }
   
    service.addSelectionListener(new ISelectionListener() {
     
      @Override
      public void selectionChanged(IWorkbenchPart part, ISelection selection) {
        System.out.println(">>"+selection);
        new ViewContentProvider().buildModel();
View Full Code Here

     * Actions according to the selection.
     */
    private void registerUpdateActions()
    {
        // Handling selection of the Browser View to enable/disable the Actions
        view.getSite().getPage().addSelectionListener( new ISelectionListener()
        {
            /**
             * {@inheritDoc}
             */
            public void selectionChanged( IWorkbenchPart part, ISelection selection )
View Full Code Here

TOP

Related Classes of org.eclipse.ui.ISelectionListener

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.