33343536373839
} @Override protected CreateJCloudsContainerAction createCloudContainerAction(Object current) { final ProfileNode node = (ProfileNode) current; return new CreateJCloudsContainerAction(node.getVersionNode(), null, node); }
367368369370371372373
protected void setCreateSshContainerAction(CreateSshContainerAction createSshContainerAction) { this.createSshContainerAction = createSshContainerAction; } protected CreateJCloudsContainerAction createCloudContainerAction(Fabric fabric) { return new CreateJCloudsContainerAction(fabric); }
331332333334335336337338339
if (getContainer().isRoot()) { menu.add(new CreateChildContainerAction(this)); } menu.add(new CreateJCloudsContainerAction(getVersionNode(), this, null)); menu.add(new CreateSshContainerAction(getVersionNode(), this, null)); }
117118119120121122123124
* (org.eclipse.jface.action.IMenuManager) */ @Override public void provideContextMenu(IMenuManager menu) { CreateChildContainerAction.addIfSingleRootContainer(menu, getFabric()); menu.add(new CreateJCloudsContainerAction(getFabric())); menu.add(new CreateSshContainerAction(getFabric())); }
32333435363738
protected List<?> getPropertySourcesForNode(Object node) { return node == null ? Collections.emptyList() : ((ContainersNode) node).getPropertySourceList(); } protected CreateJCloudsContainerAction createCloudContainerAction(Object current) { return new CreateJCloudsContainerAction(getFabric()); }
393394395396397398399
463464465466467468469
232425262728293031
super(node.getFabric()); this.node = node; setCreateChildContainerAction(new CreateChildContainerAction(node)); setCreateSshContainerAction(new CreateSshContainerAction(node.getVersionNode(), null, node)); setCreateCloudContainerAction(new CreateJCloudsContainerAction(node.getVersionNode(), null, node)); updateData(); }