|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectViewPart
net.refractions.udig.style.ui.StyleView
public class StyleView
Style Editing View.
StyleView is responsible for allowing the user to choose between applicable StyleConfigurators for the current blackboard.
What does this mean?
Field Summary | |
---|---|
static java.lang.String |
VIEW_ID
ID used in the extention point to identify this view |
Constructor Summary | |
---|---|
StyleView()
Construct StyleView . |
Method Summary | |
---|---|
void |
createPartControl(Composite parent)
Creates the style editor layout, and uses a PageBook placeholder for ui widgets to be placed into as Styles are selected. |
void |
dispose()
Note: createPartControl may not even of been called |
Layer |
getCurrentLayer()
|
IStyleConfigurator |
getStyleConfigurator()
This *is* the current styleConfigurator used by this style view. |
java.util.Set<IStyleConfigurator> |
getStyleConfigurators()
Acquire configurators for the current layer. |
void |
init(IViewSite site,
IMemento memento)
Called before createPartControl to give us chance to organize ourselves. |
void |
refresh()
Refresh all the viewsites, aka force stylecon figurators to reset. |
void |
setCurrentLayer(Layer layer)
New layer, or null if there is no selected layer. |
void |
setFocus()
Set focus to the chooser if available. |
void |
setStyleConfigurator(IStyleConfigurator config)
Set the current StyleConfigurator used by this StyleView to the provided config. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VIEW_ID
Constructor Detail |
---|
public StyleView()
StyleView
.
Note since we are a view - nothing much happens here.
Method Detail |
---|
public void init(IViewSite site, IMemento memento) throws PartInitException
We used this to latch onto the defined StyleConfigurators.
PartInitException
org.eclipse.ui.part.ViewPart#init(org.eclipse.ui.IViewSite, org.eclipse.ui.IMemento)
public void createPartControl(Composite parent)
parent
- org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
public void setCurrentLayer(Layer layer)
public Layer getCurrentLayer()
public java.util.Set<IStyleConfigurator> getStyleConfigurators()
This means you should *not* assume these IStyleConfigurators are totally happy and ready to work. They will only listen to events when they are the current page for example.
public void setFocus()
TODO: Should set the focus to the current StyleView being displayed.
public void setStyleConfigurator(IStyleConfigurator config)
Note if there is only one chooser, we should set the focus to the styleConfigurator.
Responsibilities:
config
- IStyleConfigurator to be displayed by StyleVieworg.eclipse.ui.IWorkbenchPart#setFocus()
public IStyleConfigurator getStyleConfigurator()
The following controls need to be kept in sync:
public void refresh()
public void dispose()
org.eclipse.ui.part.WorkbenchPart#dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |