public abstract class AbstractOpenAPIUIWrapper<U extends BasicGradleUI> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AlternateUIInteractionVersionWrapper |
alternateUIInteractionVersionWrapper |
protected GradleInterfaceVersion1 |
gradleInterfaceWrapper |
protected SettingsNodeVersionWrapper |
settingsVersionWrapper |
| Constructor and Description |
|---|
AbstractOpenAPIUIWrapper(SettingsNodeVersion1 settings,
AlternateUIInteractionVersion1 alternateUIInteraction) |
| Modifier and Type | Method and Description |
|---|---|
void |
aboutToShow()
Call this whenever you're about to show this panel.
|
void |
addCommandLineArgumentAlteringListener(CommandLineArgumentAlteringListenerVersion1 listener)
This allows you to add a listener that can add additional command line arguments whenever gradle is executed.
|
void |
addOutputObserver(OutputObserverVersion1 observer) |
void |
addTab(int index,
GradleTabVersion1 gradleTabVersion1)
Call this to add an additional tab to the gradle UI.
|
boolean |
canClose(BasicGradleUIVersion1.CloseInteraction closeInteraction)
Call this to deteremine if you can close this pane.
|
void |
close()
Call this before you close the pane.
|
void |
executeCommand(String commandLineArguments,
String displayName)
Call this to execute the given gradle command.
|
File |
getCurrentDirectory() |
int |
getCurrentGradleTab() |
File |
getCustomGradleExecutable()
This is called to get a custom gradle executable file.
|
FavoritesEditorVersion1 |
getFavoritesEditor()
Returns a FavoritesEditor.
|
File |
getGradleHomeDirectory() |
GradleInterfaceVersion1 |
getGradleInterfaceVersion1() |
int |
getGradleTabCount() |
int |
getGradleTabIndex(String name)
Returns the index of the gradle tab with the specified name.
|
String |
getGradleTabName(int index) |
U |
getGradleUI() |
boolean |
getOnlyShowOutputOnErrors()
Determines whether output is shown only when errors occur or always
|
OutputUILordVersion1 |
getOutputLord() |
void |
initialize(U basicGradleUI) |
protected GradleInterfaceVersion1 |
instantiateGradleInterfaceWrapper()
This instantiates our GradleInterfaceVersion object.
|
boolean |
isBusy()
Determines if commands are currently being executed or not.
|
void |
refreshTaskTree()
This refreshes the task tree.
|
void |
removeCommandLineArgumentAlteringListener(CommandLineArgumentAlteringListenerVersion1 listener) |
void |
removeOutputObserver(OutputObserverVersion1 observer) |
void |
removeTab(GradleTabVersion1 gradleTabVersion1)
Call this to remove one of your own tabs from this.
|
void |
setCurrentDirectory(File currentDirectory) |
void |
setCurrentGradleTab(int index)
Makes the specified tab the current tab.
|
void |
setCustomPanelToSetupTab(JComponent component)
This adds the specified component to the setup panel.
|
void |
setOutputTextFont(Font font)
Sets the font for the output text
|
protected SettingsNodeVersionWrapper settingsVersionWrapper
protected AlternateUIInteractionVersionWrapper alternateUIInteractionVersionWrapper
protected GradleInterfaceVersion1 gradleInterfaceWrapper
public AbstractOpenAPIUIWrapper(SettingsNodeVersion1 settings, AlternateUIInteractionVersion1 alternateUIInteraction)
public void initialize(U basicGradleUI)
protected GradleInterfaceVersion1 instantiateGradleInterfaceWrapper()
public U getGradleUI()
public void aboutToShow()
public boolean canClose(BasicGradleUIVersion1.CloseInteraction closeInteraction)
closeInteraction - allows us to interact with the userpublic void close()
public File getCurrentDirectory()
public void setCurrentDirectory(File currentDirectory)
currentDirectory - the new root directory of your gradle project.public File getGradleHomeDirectory()
public File getCustomGradleExecutable()
public void addTab(int index,
GradleTabVersion1 gradleTabVersion1)
index - the index of where to add the tab.gradleTabVersion1 - the tab to add.public void removeTab(GradleTabVersion1 gradleTabVersion1)
gradleTabVersion1 - the tab to removepublic int getGradleTabCount()
public String getGradleTabName(int index)
index - the index of the tabpublic int getGradleTabIndex(String name)
name - the name of the tabpublic int getCurrentGradleTab()
public void setCurrentGradleTab(int index)
index - the index of the tab.public void addCommandLineArgumentAlteringListener(CommandLineArgumentAlteringListenerVersion1 listener)
listener - the listener that modifies the command line arguments.public void removeCommandLineArgumentAlteringListener(CommandLineArgumentAlteringListenerVersion1 listener)
public OutputUILordVersion1 getOutputLord()
public void addOutputObserver(OutputObserverVersion1 observer)
public void removeOutputObserver(OutputObserverVersion1 observer)
public void executeCommand(String commandLineArguments, String displayName)
commandLineArguments - the command line arguments to pass to gradle.displayName - the name displayed in the UI for this commandpublic void refreshTaskTree()
public boolean isBusy()
public boolean getOnlyShowOutputOnErrors()
public void setCustomPanelToSetupTab(JComponent component)
component - the component to add.public void setOutputTextFont(Font font)
font - the new fontpublic GradleInterfaceVersion1 getGradleInterfaceVersion1()
public FavoritesEditorVersion1 getFavoritesEditor()
Copyright © 2013. All rights reserved