Skip to content

Commit

Permalink
FORGE-1217: Added isGUI() method to UIProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 19, 2013
1 parent 5a31ccb commit 0b423a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,10 @@ public void setCurrentResource(FileResource<?> resource)
updatePrompt();
}

@Override
public boolean isGUI()
{
return false;
}

}
5 changes: 5 additions & 0 deletions ui/api/src/main/java/org/jboss/forge/addon/ui/UIProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ public interface UIProvider
*/
public ListenerRegistration<CommandExecutionListener> addCommandExecutionListener(CommandExecutionListener listener);

/**
* Returns true if this {@link UIProvider} is running a Graphical User Interface.
*/
public boolean isGUI();

}

0 comments on commit 0b423a6

Please sign in to comment.