/** Creates a new <code>PinPropertySheetAction</code>. */
  public PinPropertySheetAction() {
    super(PropertiesMessages.Pin_text, IAction.AS_CHECK_BOX);

    setId(
        PinPropertySheetAction.class.getName()
            + "#"
            + Long.toString(System.currentTimeMillis())); // $NON-NLS-1$
    setToolTipText(PropertiesMessages.Pin_toolTip);
    setImageDescriptor(
        WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR));
    setDisabledImageDescriptor(
        WorkbenchImages.getImageDescriptor(
            IWorkbenchGraphicConstants.IMG_ETOOL_PIN_EDITOR_DISABLED));

    PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IPropertiesHelpContextIds.PIN_ACTION);
  }
 private Image getOpenPerspectiveImage() {
   if (perspectiveImage == null || perspectiveImage.isDisposed()) {
     ImageDescriptor desc =
         WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_ETOOL_NEW_PAGE);
     perspectiveImage = desc.createImage();
   }
   return perspectiveImage;
 }
 @Override
 public ImageDescriptor getImageDescriptor() {
   return WorkbenchImages.getImageDescriptor(ISharedImages.IMG_ETOOL_DEF_PERSPECTIVE);
 }