public int open() { // Before opening, set the container of the input and listen // for changes to the input fCompareEditorInput.addPropertyChangeListener(this); fCompareEditorInput.setContainer(fContainer); return super.open(); }
@Override public int open() { // Before opening, set the container of the input and listen // for changes to the input fCompareEditorInput.addPropertyChangeListener(this); fCompareEditorInput.setContainer(fContainer); return super.open(); }
public int open() { isOpen = true; if (sashWeights == null) { int a, b, c; int height = getSashForm().getClientArea().height; if (height < 250) { a = b = c = height / 3; } else { a = 100; // Details section needs about 100 c = 100; // Text area gets 100 b = height - a - c; // Stack trace should take up majority of room } sashWeights = new int[] {a, b, c}; } getSashForm().setWeights(sashWeights); return super.open(); }
public int open(){ isOpen = true; if (sashWeights == null){ int width = getSashForm().getClientArea().width; if (width - 100 > 0) width -= 100; else width = width/2; sashWeights = new int[]{width, getSashForm().getClientArea().width-width}; } getSashForm().setWeights(sashWeights); return super.open(); }
@Override public int open() { boolean modalitySwitch = getBooleanValue(IStatusDialogConstants.MODALITY_SWITCH); int result = super.open(); if (modalitySwitch) { if (getBooleanValue(IStatusDialogConstants.DETAILS_OPENED)) { showDetailsArea(); } if (getBooleanValue(IStatusDialogConstants.TRAY_OPENED)) { openTray(); } } else { if (getBooleanValue(IStatusDialogConstants.ANIMATION)) { Rectangle shellPosition = getShell().getBounds(); ProgressManagerUtil.animateUp(shellPosition); } } return result; }