This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Servers View
Vlado Pakan edited this page Aug 23, 2013
·
7 revisions
- WorkbenchPart / View
- implements ReferencedComposite
Instantiate Servers View
ServersView serversView = new ServersView();
Open Servers View
serversView.open();
Add server
NewServerWizardDialog wizardDialog = serversView.newServer();
NewServerWizardPage newServerPage = wizardDialog.getFirstPage();
newServerPage.selectType(<pathToServerTypeWithinServerTypeTree>);
newServerPage.setName(<newServerName>);
wizardDialog.finish();
Get server by name
Server = serversView.getServer(<serverName>);
Get all defined servers
List<Server> servers = serversView.getServers();