com.pnp.xfeature.project
Class ProjectFormPage

java.lang.Object
  extended by FormPage
      extended by com.pnp.xfeature.project.ProjectFormPage

public class ProjectFormPage
extends FormPage

This class represents the form page of the project editor. The form page offers a graphical user interface with different components like buttons, tables and trees to edit the project file.

Author:
Ondrej Rohlik, support by Valerio Buerker

Constructor Summary
ProjectFormPage(FormEditor editor, java.lang.String id, java.lang.String title)
          Constructor.
 
Method Summary
 void appDisplayModelGenFileSelected()
          Called if the user selects an XSL file from the table.
 void appGlobalConstraintsGenFileSelected()
          Called if the user selects an XSL file from the table.
 void appMetaModelGenFileSelected()
          Called if the user selects an XSL file from the table.
 void createFormContent(IManagedForm managedForm)
           
 Table getAppDisplayModelTable()
           
 Table getAppGlobalConstraintsTable()
           
 Table getAppMetaModelTable()
           
 FileFilter getFileFilter()
          Returns the selected file filter.
 CheckboxTreeViewer getFileTree()
          Returns the source file tree.
 IProject getProject()
           
 ProjectFormEditor getProjectFormEditor()
          Returns the project editor.
 Text getTextFamilyDisplayModel()
           
 Text getTextFamilyMetaModel()
           
 Text getTextProjectDescription()
           
 Text getTextProjectName()
           
 void setCreateProjectInWorkspace(boolean b)
          Informs the page if the project is created in the default directory.
 void setNewProjectName(java.lang.String s)
          Stores the name of the newly created project.
 void setNewProjectPath(java.lang.String s)
          Stores the path of the newly created project.
 void setProjectCreated(boolean b)
          Informs the page if a new project has been created.
 void setTableItem(java.lang.String folder)
          Adds a table item to the weave folder table.
 void setVisibleFields()
          Sets the visible textfields.
 void ungrayChildren(java.io.File parent, ViewerFilter filter)
          Ungrays all children of a parent file in the tree viewer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFormPage

public ProjectFormPage(FormEditor editor,
                       java.lang.String id,
                       java.lang.String title)
Constructor.

Parameters:
editor - project editor
id - id of the page
title - title of the page
Method Detail

getProject

public IProject getProject()
Returns:
the project in which the edited file resides

createFormContent

public void createFormContent(IManagedForm managedForm)
See Also:
org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)

setVisibleFields

public void setVisibleFields()
Sets the visible textfields.


ungrayChildren

public void ungrayChildren(java.io.File parent,
                           ViewerFilter filter)
Ungrays all children of a parent file in the tree viewer.

Parameters:
parent - parent file
filter - file filter of tree viewer

appMetaModelGenFileSelected

public void appMetaModelGenFileSelected()
Called if the user selects an XSL file from the table.


appDisplayModelGenFileSelected

public void appDisplayModelGenFileSelected()
Called if the user selects an XSL file from the table.


appGlobalConstraintsGenFileSelected

public void appGlobalConstraintsGenFileSelected()
Called if the user selects an XSL file from the table.


setTableItem

public void setTableItem(java.lang.String folder)
Adds a table item to the weave folder table.

Parameters:
folder - name of the weave folder

getFileTree

public CheckboxTreeViewer getFileTree()
Returns the source file tree.

Returns:
source file tree

setNewProjectPath

public void setNewProjectPath(java.lang.String s)
Stores the path of the newly created project.

Parameters:
s - path of project

setNewProjectName

public void setNewProjectName(java.lang.String s)
Stores the name of the newly created project.

Parameters:
s - name of project

setProjectCreated

public void setProjectCreated(boolean b)
Informs the page if a new project has been created.

Parameters:
b - true, if project created, false otherwise

setCreateProjectInWorkspace

public void setCreateProjectInWorkspace(boolean b)
Informs the page if the project is created in the default directory.

Parameters:
b - true, if default directory, false otherwise

getProjectFormEditor

public ProjectFormEditor getProjectFormEditor()
Returns the project editor.

Returns:
project editor

getFileFilter

public FileFilter getFileFilter()
Returns the selected file filter.

Returns:
file filter

getTextFamilyMetaModel

public Text getTextFamilyMetaModel()

getTextProjectName

public Text getTextProjectName()

getTextProjectDescription

public Text getTextProjectDescription()

getTextFamilyDisplayModel

public Text getTextFamilyDisplayModel()

getAppMetaModelTable

public Table getAppMetaModelTable()

getAppDisplayModelTable

public Table getAppDisplayModelTable()

getAppGlobalConstraintsTable

public Table getAppGlobalConstraintsTable()


Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.