|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PropertyPage | +--net.sf.javadocbuilder.ui.JavadocBuilderPropertyPage
Property page implementation for graphically accessing the Javadoc bulder configuration.
Field Summary | |
private java.util.Vector |
builders
The BuilderConfiguration instances configured |
private List |
currentBuildersList
SWT List of current builders. |
private ILog |
elog
Eclipse logger |
private static java.util.logging.Logger |
log
Development logger |
private IProject |
project
The project for which this propery page is. |
Fields inherited from interface net.sf.javadocbuilder.Constants |
ARG_CLASSNAME_FILTER_ENABLED, ARG_CLASSNAME_FILTER_PATTERN, ARG_CUSTOM_TEMPLATE_NAME, ARG_OUT_DIR, ARG_OUT_NAME_PATTERN, ARG_SINGLE_FILE, ARG_SOURCE_DIRECTORIES, ARG_TAG_FILTER_ENABLED, ARG_TAG_FILTER_NAME, ARG_TEMPLATE_NAME, CONFIGURATION_FILENAME |
Constructor Summary | |
JavadocBuilderPropertyPage()
|
Method Summary | |
protected Control |
createContents(Composite parent)
|
private void |
createEditButton(Composite buttons)
Creates the edit builder button for the property page. |
private void |
createMoveDownButton(Composite buttons)
Creates the move down builder button for the property page. |
private void |
createMoveUpButton(Composite buttons)
Creates the move up button for the property page. |
private void |
createNewButton(Composite buttons)
Creates the new builder button for the property page. |
private void |
createRebuildButton(Composite buttons)
Creates the rebuild button. |
private void |
createRemoveButton(Composite buttons)
Creates the remove builder button for the property page. |
private void |
deleteJavadocBuilderConfig()
Deletes the .javadoc buider file from the project |
private void |
editBuilder(int selected,
ICommand command)
Updates the build command at specified position. |
private java.lang.String |
formatBuilderName(net.sf.javadocbuilder.BuilderConfiguration bc)
Format the build command for printing to the user. |
private java.lang.String[] |
getBuildersNames()
Gets a list of the visible names of the builders in the #commands vector. |
private IProject |
getProject()
Gets the project we are dealing with. |
private java.lang.String[] |
getTemplates()
Get the list of available templates. |
private void |
handleException(java.lang.String operation,
java.lang.Exception e)
Shows an error to the user and logs it. |
private int |
javadocBuilderIndex(ICommand[] cmds)
Gets the index of the first javadoc builder in the commands array or -1 if there's none. |
private void |
noSelectedBuilder()
inform the user that there is no builder selected. |
protected void |
performApply()
|
protected void |
performDefaults()
|
boolean |
performOk()
|
private void |
readBuilders()
Reads build commands configured in the project into the #commands vector. |
private void |
refreshBuilders()
Updates the currentBuildersList
The project description is not affected by this operation |
private void |
removeBuilder(int selected)
Remove the builder from the commands. |
private void |
updateProjectBuilders()
update the project builders putting in the project description the builders defined in this page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IProject project
private ILog elog
private static java.util.logging.Logger log
private List currentBuildersList
private java.util.Vector builders
BuilderConfiguration
instances configured
Constructor Detail |
public JavadocBuilderPropertyPage()
Method Detail |
protected Control createContents(Composite parent)
private void createNewButton(Composite buttons)
buttons
- private void createEditButton(Composite buttons)
buttons
- private void createRemoveButton(Composite buttons)
buttons
- private void createMoveUpButton(Composite buttons)
buttons
- private void createMoveDownButton(Composite buttons)
buttons
- private void createRebuildButton(Composite buttons)
buttons
- private void updateProjectBuilders()
private final void handleException(java.lang.String operation, java.lang.Exception e)
e
- private void deleteJavadocBuilderConfig()
private final int javadocBuilderIndex(ICommand[] cmds)
cmds
-
private void editBuilder(int selected, ICommand command)
selected
- command
- private void removeBuilder(int selected)
selected
- private void refreshBuilders()
currentBuildersList
The project description is not affected by this operation
private java.lang.String[] getBuildersNames()
#commands
vector.
private void readBuilders()
#commands
vector.
private java.lang.String formatBuilderName(net.sf.javadocbuilder.BuilderConfiguration bc)
String
that the user will be able to interpretprivate IProject getProject()
IProject
private java.lang.String[] getTemplates()
private final void noSelectedBuilder()
protected void performApply()
public boolean performOk()
protected void performDefaults()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |