示例#1
0
 /**
  * Returns the names of the types that can be created as the root object.
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 protected Collection<String> getInitialObjectNames() {
   if (initialObjectNames == null) {
     initialObjectNames = new ArrayList<String>();
     for (EClassifier eClassifier : webpagePackage.getEClassifiers()) {
       if (eClassifier instanceof EClass) {
         EClass eClass = (EClass) eClassifier;
         if (!eClass.isAbstract()) {
           initialObjectNames.add(eClass.getName());
         }
       }
     }
     Collections.sort(initialObjectNames, CommonPlugin.INSTANCE.getComparator());
   }
   return initialObjectNames;
 }
示例#2
0
 /**
  * Throws an exception if it should ever be called.
  *
  * @exception UnsupportedOperationException always.
  */
 public void redo() {
   throw new UnsupportedOperationException(
       CommonPlugin.INSTANCE.getString(
           "_EXC_Method_not_implemented", new String[] {this.getClass().getName() + ".redo()"}));
 }
示例#3
0
 @Override
 public String getDescription() {
   return description == null
       ? CommonPlugin.INSTANCE.getString("_UI_IdentityCommand_description")
       : description;
 }
示例#4
0
 /** Only one private instance is created. */
 private UnexecutableCommand() {
   super(
       CommonPlugin.INSTANCE.getString("_UI_UnexecutableCommand_label"),
       CommonPlugin.INSTANCE.getString("_UI_UnexecutableCommand_description"));
 }
示例#5
0
 @Override
 public String getLabel() {
   return label == null ? CommonPlugin.INSTANCE.getString("_UI_IdentityCommand_label") : label;
 }