Package org.gudy.azureus2.ui.swt.views

Examples of org.gudy.azureus2.ui.swt.views.IView


    } else if (sel == sel_wizardMenuSelected_) {
      new ConfigureWizard(false,ConfigureWizard.WIZARD_MODE_FULL);
    } else if (sel == sel_natMenuSelected_) {
      new NatTestWindow();
    } else if (sel == sel_speedMenuSelected_) {
      new SpeedTestWizard();
    } else if (sel == sel_toolbarButtonClicked_) {
      try {
        Field fldsel_window = osCls.getField("sel_window");
        Object windowId = invoke(osCls, "objc_msgSend", new Object[] {
          wrapPointer(arg0),
View Full Code Here


    */
    if (iview != null) {
      return;
    }
    try {
      IView iview = new UISWTViewImpl(parentID, id, eventListenerDelegate,
          datasource);
      setIView(iview);

      IViewInfo foundViewInfo = PluginsMenuHelper.getInstance().findIViewInfo(
          eventListener);

      String title;
      if (foundViewInfo != null) {
        title = foundViewInfo.name;
      } else {
        title = iview.getFullTitle();
      }
      ((UISWTViewImpl) iview).setTitle(title);
      setTitle(title);
    } catch (Exception e) {
      Debug.out(e);
View Full Code Here

    MdiEntrySWT[] entries = getEntriesSWT();
    for (MdiEntrySWT entry : entries) {
      if (entry == null) {
        continue;
      }
      IView view = entry.getIView();
      if (view != null) {
        try {
          view.updateLanguage();
          view.refresh();
        }
        catch (Exception e) {
          Debug.printStackTrace(e);
        }
      }
View Full Code Here

    for (MdiEntrySWT entry : entries) {
      if (entry == null) {
        continue;
      }

      IView view = entry.getIView();

      if (view != null) {
        writer.println(view.getFullTitle());

        try {
          writer.indent();

          view.generateDiagnostics(writer);
        } catch (Exception e) {

        } finally {

          writer.exdent();
View Full Code Here

          close(true);
        }

      } else if (iviewClass != null) {
        try {
          IView view = null;
          if (iviewClassArgs == null) {
            view = (IView) iviewClass.newInstance();
          } else {
            Constructor<?> constructor = iviewClass.getConstructor(iviewClassArgs);
            view = (IView) constructor.newInstance(iviewClassVals);
View Full Code Here

  public void widgetDisposed(DisposeEvent e) {
    setSwtItem(null);

    triggerCloseListeners(!SWTThread.getInstance().isTerminated());

    IView iview = getIView();
    if (iview != null) {
      setIView(null);
      iview.delete();
    }
    SWTSkinObject so = getSkinObject();
    if (so != null) {
      setSkinObject(null, null);
      so.getSkin().removeSkinObject(so);
View Full Code Here

          CTabItem tabItem = items[i];
          tabItem.getControl().setVisible(false);
        }
        form.layout();

        IView view = getActiveSubView();
        if (view instanceof IViewExtension) {
          ((IViewExtension) view).viewDeactivated();
        }

       
        configMan.setParameter(sPropertiesPrefix + ".subViews.minimized", true);
      }

      public void restore(CTabFolderEvent event) {
        tabFolder.setMinimized(false);
        CTabItem selection = tabFolder.getSelection();
        if (selection != null) {
          selection.getControl().setVisible(true);
        }
        form.notifyListeners(SWT.Resize, null);

        IView view = getActiveSubView();
        if (view instanceof IViewExtension) {
          ((IViewExtension) view).viewActivated();
        }
        refreshSelectedSubView();

        configMan.setParameter(sPropertiesPrefix + ".subViews.minimized", false);
      }

    };
    tabFolder.addCTabFolder2Listener(folderListener);

    tabFolder.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // make sure its above
        try {
          ((CTabItem) e.item).getControl().setVisible(true);
          ((CTabItem) e.item).getControl().moveAbove(null);

          // TODO: Need to viewDeactivated old one
          IView view = getActiveSubView();
          if (view instanceof IViewExtension) {
            ((IViewExtension)view).viewActivated();
          }
         
        } catch (Exception t) {
View Full Code Here

  public void localeChanged(Locale old_locale, Locale new_locale) {
    Utils.execSWTThreadLater(0, new AERunnable() {
      public void runSupport() {
        if (tabViews != null && tabViews.size() > 0) {
          for (int i = 0; i < tabViews.size(); i++) {
            IView view = tabViews.get(i);
            if (view != null) {
              view.updateLanguage();
            }
          }
        }
        tableInvalidate();
        refreshTable(true);
View Full Code Here

    // TODO: Send all datasources
    Object[] dataSourcesCore = getSelectedDataSources(true);
    Object[] dataSourcesPlugin = null;

    for (int i = 0; i < tabViews.size(); i++) {
      IView view = tabViews.get(i);
      if (view != null) {
        if (view instanceof UISWTViewImpl) {
          if (dataSourcesPlugin == null) {
            dataSourcesPlugin = getSelectedDataSources(false);
          }

          ((UISWTViewImpl) view).dataSourceChanged(dataSourcesPlugin.length == 0
              ? null : dataSourcesPlugin);
        } else {
          view.dataSourceChanged(dataSourcesCore.length == 0 ? null
              : dataSourcesCore);
        }
      }
    }
  }
View Full Code Here

    return null;
  }

  public void refreshSelectedSubView() {
    IView view = getActiveSubView();
    if (view != null && view.getComposite().isVisible()) {
      view.refresh();
    }
  }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.ui.swt.views.IView

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.