Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.IPageChangedListener


     * @since 3.1
     */
    protected void firePageChanged(final PageChangedEvent event) {
        Object[] listeners = pageChangedListeners.getListeners();
        for (int i = 0; i < listeners.length; i++) {
            final IPageChangedListener l = (IPageChangedListener) listeners[i];
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.pageChanged(event);
                }
            });
        }
    }
View Full Code Here


        IWizardContainer container = wizard.getContainer();
        if ( container instanceof WizardDialog )
        {
            WizardDialog dialog = ( WizardDialog ) container;
            dialog.addPageChangedListener( new IPageChangedListener()
            {
                public void pageChanged( PageChangedEvent event )
                {
                    if ( getControl().isVisible() )
                    {
View Full Code Here

     * export will go to.
     */
    private void addPageChangeListener() {
        if (getContainer() instanceof WizardDialog) {
            WizardDialog dialog = (WizardDialog) getContainer();
            dialog.addPageChangedListener(new IPageChangedListener(){

                public void pageChanged( PageChangedEvent event ) {
                    WizardPage currentPage = (WizardPage) event.getSelectedPage();
                    if (currentPage == mapSelectorPage) {
                        String currentFormat = imageSettingsPage.getFormat().getName();
View Full Code Here

     * @since 3.1
     */
    protected void firePageChanged(final PageChangedEvent event) {
        Object[] listeners = pageChangedListeners.getListeners();
        for (int i = 0; i < listeners.length; i++) {
            final IPageChangedListener l = (IPageChangedListener) listeners[i];
            SafeRunnable.run(new SafeRunnable() {
                public void run() {
                    l.pageChanged(event);
                }
            });
        }
    } 
View Full Code Here

        createPageContent(page);

        //invoke the layout
        parent.layout();
       
        container.addPageChangedListener(new IPageChangedListener() {

            public void pageChanged( PageChangedEvent event ) {
                if (getEditorPage() == event.getSelectedPage()) {
                    gotFocus(); //the current page just got focus, call the abstract method
                }
View Full Code Here

   * @since 3.1
   */
  protected void firePageChanged(final PageChangedEvent event) {
    Object[] listeners = pageChangedListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final IPageChangedListener l = (IPageChangedListener) listeners[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.pageChanged(event);
        }
      });
    }
  }
View Full Code Here

        IWizardContainer container = wizard.getContainer();
        if ( container instanceof WizardDialog )
        {
            WizardDialog dialog = ( WizardDialog ) container;
            dialog.addPageChangedListener( new IPageChangedListener()
            {
                public void pageChanged( PageChangedEvent event )
                {
                    if ( getControl().isVisible() )
                    {
View Full Code Here

         */
        @Override
        public void partOpened(IWorkbenchPart part) {
          ILogViewEditor editor = (ILogViewEditor) part.getAdapter(ILogViewEditor.class);
          if (editor != null) {
            editor.addPageChangedListener(new IPageChangedListener() {

              /* (non-Javadoc)
               * @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
               */
              @Override
 
View Full Code Here

    super(parentShell, newWizard);
    addPageChangedListener(createPageChangedListener());
  }

  private IPageChangedListener createPageChangedListener() {
    return new IPageChangedListener() {
      @Override
      public void pageChanged(PageChangedEvent event) {
        Object page = event.getSelectedPage();
        if (page instanceof IIdentityWizardPage) {
          ((IIdentityWizardPage)page).pageSelected();
View Full Code Here

  }

  private void firePageChanged(final PageChangedEvent event) {
    Object[] listeners = pageListeners.getListeners();
    for (int i = 0; i < listeners.length; ++i) {
      final IPageChangedListener l = (IPageChangedListener) listeners[i];
      SafeRunnable.run(new SafeRunnable() {
        public void run() {
          l.pageChanged(event);
        }
      });
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.dialogs.IPageChangedListener

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.