projectviewer.config
Class ProjectOptions

java.lang.Object
  extended by projectviewer.config.ProjectOptions

public class ProjectOptions
extends java.lang.Object

A class for managing a dialog for configuring the properties of a project. The dialog itself works like jEdit's OptionsDialog (from which an inner class extends). This class allows plugins to add option panes to it via services.

Author:
Marcelo Vanzin

Method Summary
static VPTProject run(VPTProject proj, boolean isNew, VPTGroup parent)
          Deprecated. 
static VPTProject run(VPTProject proj, boolean isNew, VPTGroup parent, java.lang.String startupPane)
          Shows the project options dialog for the given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public static VPTProject run(VPTProject proj,
                             boolean isNew,
                             VPTGroup parent,
                             java.lang.String startupPane)
Shows the project options dialog for the given project.

Should not be called from outside ProjectViewer.

Parameters:
proj - The project to edit (null to create a new one).
isNew - If a non-null project is provided, whether to treat is as a new project.
parent - The parent node where to insert new projects; may be null.
startupPane - The name of the pane to show on dialog startup, may be null.
Returns:
The project with updated information, or null if the user cancelled the dialog.
Since:
PV 3.4.1

run

@Deprecated
public static VPTProject run(VPTProject proj,
                                        boolean isNew,
                                        VPTGroup parent)
Deprecated. 

Shows the project options dialog for the given project. Since 3.4.2 a 4 argument method is used internally, but neither should be called from outside Project Viewer.

This method displays a warning when being used, to detect potential plugins that call it.

Since:
PV 3.0.0