|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.corona.internal.container.project.ui.MultiPageViewPart
org.eclipse.corona.container.project.ui.view.ProjectContainerView
public class ProjectContainerView
Corona Project Container View
Ths class displays all pages defined a extension point
org.eclipse.corona.client.project.ui.projectcontainerpage
.
The pages must extend AbstractProjectContainerPage
or
ViewPart
.
Later on fallowing abbervations are used:
Field Summary | |
---|---|
static java.lang.String |
PROJECT_CONTAINER_PAGE_EXTENSIONPOINT
An identifier of the extension point. |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
ProjectContainerView()
Creates a multi-page editor example. |
Method Summary | |
---|---|
protected void |
createPages()
Creates the pages of the multi-page viewer. |
void |
dispose()
The MultiPageViewPart implementation of this
IWorkbenchPart method disposes all nested editors. |
ProjectContextContainer |
getProjectContainer()
Sets the project container which is the subject of this view. |
void |
handleEvent(org.osgi.service.event.Event event)
Handles a collaboration event; in fact it delivers the event to all pages. |
void |
init(org.eclipse.ui.IViewSite site,
org.eclipse.ui.IMemento memento)
Initializes this view. |
protected void |
pageChange(int newPageIndex)
Notifies this multi-page view that the page with the given id has been activated. |
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Closes all project files on project close. |
void |
setProjectContainer(ProjectContextContainer container)
Sets the project container which is the subject of this view. |
void |
showRegisteredPage(java.lang.String pageName)
Method shows registered special pages in the project container view. |
void |
showRepositoryTab(RepositoryDescriptor repository)
Switches tab to one that displays a given repository. |
Methods inherited from class org.eclipse.corona.internal.container.project.ui.MultiPageViewPart |
---|
addPage, addPage, addPage, addPage, clear, createPageContainer, createPartControl, createSite, getActivePage, getActiveViewer, getAdapter, getContainer, getControl, getPageCount, getPageImage, getPageText, getViewPart, handlePropertyChange, init, removePage, setActivePage, setControl, setFocus, setPageImage, setPageText, setPageToolTip |
Methods inherited from class org.eclipse.ui.part.ViewPart |
---|
checkSite, getViewSite, saveState, setContentDescription, setInitializationData, setPartName |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
---|
addPropertyListener, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Field Detail |
---|
public static final java.lang.String PROJECT_CONTAINER_PAGE_EXTENSIONPOINT
Constructor Detail |
---|
public ProjectContainerView()
Method Detail |
---|
public void setProjectContainer(ProjectContextContainer container)
container
- The new project container.public ProjectContextContainer getProjectContainer()
public void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IViewPart
init
in class org.eclipse.ui.part.ViewPart
org.eclipse.ui.PartInitException
ViewPart.init(org.eclipse.ui.IViewSite,
org.eclipse.ui.IMemento)
protected void createPages()
createPages
in class org.eclipse.corona.internal.container.project.ui.MultiPageViewPart
public void dispose()
MultiPageViewPart
implementation of this
IWorkbenchPart
method disposes all nested editors.
Subclasses may extend.
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.corona.internal.container.project.ui.MultiPageViewPart
protected void pageChange(int newPageIndex)
org.eclipse.corona.internal.container.project.ui.MultiPageViewPart
The MultiPageViewPart
implementation of this method sets
focus to the new page, and notifies the action bar contributor (if there
is one). This checks whether the action bar contributor is an instance of
MultiPageEditorActionBarContributor
, and, if so, calls
setActivePage
with the active nested editor. This also
fires a selection change event if required.
Subclasses may extend this method.
pageChange
in class org.eclipse.corona.internal.container.project.ui.MultiPageViewPart
newPageIndex
- the index of the activated pagepublic void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
event
- The collaboration event to be handled.public void showRegisteredPage(java.lang.String pageName)
pageName
- the id of registered page to be shown in the view.public void showRepositoryTab(RepositoryDescriptor repository)
repository
- The repository to switch to.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |