Package org.eclipse.ui

Examples of org.eclipse.ui.IPartListener2


            public void perspectiveDeactivated( IWorkbenchPage page, IPerspectiveDescriptor perspective )
            {
                updateTitle( false );
            }
        } );
        configurer.getWindow().getPartService().addPartListener( new IPartListener2()
        {
            public void partActivated( IWorkbenchPartReference ref )
            {
                if ( ref instanceof IEditorReference )
                {
View Full Code Here


          public void perspectiveDeactivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) {
              updateTitle();
            }
          });
      configurer.getWindow().getPartService().addPartListener(
          new IPartListener2() {
            public void partActivated(IWorkbenchPartReference ref) {
              if (ref instanceof IEditorReference) {
                updateTitle();
              }
            }
View Full Code Here

   *
   * @author Andreas Br�ker
   * @author Markus Kr�ger
   */ 
  public void createPartControl(Composite parent) { 
    EditorUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getPartService().addPartListener(new IPartListener2(){
      public void partActivated(IWorkbenchPartReference partRef) {
      }
      public void partBroughtToTop(IWorkbenchPartReference partRef) {
      }
      public void partClosed(IWorkbenchPartReference partRef) {
View Full Code Here

    });
   
    buildActions();
    fillToolBar();
   
    partListener = new IPartListener2() {
      public void partActivated(IWorkbenchPartReference partRef) {
      }
      public void partBroughtToTop(IWorkbenchPartReference partRef) {
      }
      public void partClosed(IWorkbenchPartReference partRef) {
View Full Code Here

    partListener = createPartListener();
    getSite().getPage().addPartListener(partListener);
  }

  private IPartListener2 createPartListener() {
    return new IPartListener2() {
      @Override
      public void partVisible(IWorkbenchPartReference partRef) {
        if(ID.equals(partRef.getId())) {
          isVisible = true;
          setNotifyOff();
View Full Code Here

    partListener = createPartListener();
    getSite().getPage().addPartListener(partListener);
  }
 
    private IPartListener2 createPartListener() {
    return new IPartListener2() {
      @Override
      public void partVisible(IWorkbenchPartReference partRef) {
        if(ID.equals(partRef.getId())) {
          isViewVisible = true;
          stopNotifier();
View Full Code Here

      createPartListener(workbenchPages[idx]);
    }
  }

  private void createPartListener(IWorkbenchPage page) {
    IPartListener2 listener = new IPartListener2() {
      @Override
      public void partActivated(IWorkbenchPartReference partRef) {
      }

      @Override
View Full Code Here

    /**
     * Initializes the PartListener.
     */
    private void initPartListener()
    {
        view.getSite().getPage().addPartListener( new IPartListener2()
        {
            /**
              * This implementation deactivates the shortcuts when the part is deactivated.
              */
            public void partDeactivated( IWorkbenchPartReference partRef )
View Full Code Here

                updateActionsStates();
            }
        } );

        // Initializing the PartListener
        getSite().getPage().addPartListener( new IPartListener2()
        {
            /**
              * This implementation deactivates the shortcuts when the part is deactivated.
              */
            public void partDeactivated( IWorkbenchPartReference partRef )
View Full Code Here

    /**
     * Initializes the PartListener.
     */
    private void initPartListener()
    {
        view.getSite().getPage().addPartListener( new IPartListener2()
        {
            /**
              * This implementation deactivates the shortcuts when the part is deactivated.
              */
            public void partDeactivated( IWorkbenchPartReference partRef )
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IPartListener2

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.