Exemplo n.º 1
0
 /**
  * The method is overridden to compare {@link ScriptEditor} nature with the nature of this view.
  *
  * @see
  *     org.eclipse.dltk.mod.ui.infoviews.AbstractInfoView#isValidWorkbenchPart(org.eclipse.ui.IWorkbenchPart)
  */
 protected boolean isValidWorkbenchPart(IWorkbenchPart part) {
   if (part instanceof ScriptEditor) {
     final ScriptEditor editor = (ScriptEditor) part;
     return editor.getLanguageToolkit().getNatureId().equals(getNature());
   }
   return false;
 }