|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectViewPart
ist.palcom.eclipse.browserplugin.views.HelloEditView
public class HelloEditView
This sample class demonstrates how to plug-in a new workbench view. The view shows data obtained from the model. The sample creates a dummy model on the fly, but a real implementation would connect to the model available either in this or another plug-in (e.g. the workspace). The view is connected to the model using a content provider.
The view uses a label provider to define how model objects should be presented in the view. Each view can present the same model objects using different labels and icons, if needed. Alternatively, a single label provider can be shared between views in order to ensure that objects of the same type are presented in the same way everywhere.
| Constructor Summary | |
|---|---|
HelloEditView()
The constructor. |
|
| Method Summary | |
|---|---|
void |
addElement(java.lang.Object info)
|
void |
addElement(java.lang.String s)
|
void |
addElement(java.lang.String s,
java.lang.String parent)
|
void |
createPartControl(Composite parent)
This is a callback that will allow us to create the viewer and initialize it. |
void |
dispose()
|
void |
removeElement(java.lang.Object info)
|
void |
removeElement(java.lang.String s)
|
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setFocus()
Passing the focus request to the viewer's control. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelloEditView()
| Method Detail |
|---|
public void createPartControl(Composite parent)
public void setFocus()
public void selectionChanged(SelectionChangedEvent event)
public void dispose()
public void addElement(java.lang.String s)
public void addElement(java.lang.String s,
java.lang.String parent)
public void removeElement(java.lang.String s)
public void addElement(java.lang.Object info)
addElement in interface DeviceAndServiceListenerpublic void removeElement(java.lang.Object info)
removeElement in interface DeviceAndServiceListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||