setEnabled(false);
return;
}
// Are we showing a 'real' fast view or a minimized view ?
Perspective persp = viewPane.getPane().getPage().getActivePerspective();
FastViewManager fvm = persp.getFastViewManager();
String trimId = null;
if (fvm != null)
trimId = fvm.getIdForRef(viewRef);
realFV = trimId == null || FastViewBar.FASTVIEWBAR_ID.equals(trimId);
// it's 'restore' if we're not using a real fast view
if (realFV) {
setText(WorkbenchMessages.ViewPane_fastView);
}
else {
setText(WorkbenchMessages.StandardSystemToolbar_Restore);
setChecked(false);
}
if (!site.isPartMoveable(viewPane)) {
setEnabled(false);
} else {
setEnabled(true);
if (realFV)
setChecked(persp.isFastView(viewRef));
}
}