コード例 #1
0
ファイル: Command.java プロジェクト: cyberpython/java-gnome
 /*
  * ... on the other hand, this is just clumsy, but it is at least
  * consistent with getResponseId() and likewise a bit cleaner.
  */
 static Command constantFor(int ordinal) {
   return UniqueCommandOverride.enumFor(ordinal);
 }
コード例 #2
0
ファイル: Command.java プロジェクト: cyberpython/java-gnome
 /*
  * It's not entirely necessary to have these here; we could just have
  * Dialog call the static methods in UniqueCommandOverride directly, but
  * the code seems a bit to have this as instance method here...
  */
 int getCommandId() {
   return UniqueCommandOverride.numOf(this);
 }