@Override
 public void setVisible(boolean visible) {
   if (!visible) {
     persistSettings(getShell());
   }
   super.setVisible(visible);
 }
예제 #2
0
 @Override
 public void setForegroundColor(final Color foreground) {
   super.setForegroundColor(foreground);
   fContentComposite.setForeground(foreground);
   fTitleText.setForeground(foreground);
   fInfoText.setForeground(foreground);
 }
예제 #3
0
 @Override
 public void setForegroundColor(final Color foreground) {
   super.setForegroundColor(foreground);
   this.contentComposite.setForeground(foreground);
   this.titleText.setForeground(foreground);
   this.infoText.setForeground(foreground);
 }
 @Override
 public void setBackgroundColor(Color background) {
   super.setBackgroundColor(background);
   if (fDetailPaneComposite != null) {
     fDetailPaneComposite.setBackground(background);
   }
   fTree.setBackground(background);
 }
 @Override
 public void setSize(int width, int height) {
   if (!isResizable() && fDetailPaneComposite != null) {
     // add height of details pane
     height += fDetailPaneComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
   }
   super.setSize(width, height);
 }
예제 #6
0
  @Override
  public void setVisible(final boolean visible) {
    if (visible) {
      updateInput();

      if (fLayoutWorkaround) {
        fContentComposite.layout(true, true);
        fLayoutWorkaround = false;
      }
    }
    super.setVisible(visible);
  }
예제 #7
0
  @Override
  public void setVisible(final boolean visible) {
    if (visible) {
      updateInput();

      if (this.layoutWorkaround) {
        this.contentComposite.layout(true, true);
        this.layoutWorkaround = false;
      }

      if (Platform.WS_WIN32.equals(SWT.getPlatform())) {
        final Shell shell = getShell();
        if (shell != null) {
          shell.moveAbove(null);
        }
      }
    }
    super.setVisible(visible);
  }
예제 #8
0
 @Override
 public void dispose() {
   JFaceResources.getFontRegistry().removeListener(this);
   super.dispose();
 }
예제 #9
0
 @Override
 public void setBackgroundColor(final Color background) {
   super.setBackgroundColor(background);
   fContentComposite.setBackground(background);
 }
 @Override
 public void setFocus() {
   super.setFocus();
   fTree.setFocus();
 }
 @Override
 public void dispose() {
   persistSettings(getShell());
   fContext.dispose();
   super.dispose();
 }