Search in sources :

Example 16 with ObservableTreeItem

use of org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem in project jbosstools-openshift by jbosstools.

the class NewResourceWizardModel method loadResources.

/* (non-Javadoc)
	 * @see org.jboss.tools.openshift.internal.ui.wizard.common.IProjectPageModel#loadResources()
	 */
@Override
public void loadResources() {
    if (connection == null) {
        return;
    }
    ObservableTreeItem connectionItem = ProjectTreeItems.INSTANCE.create(connection);
    connectionItem.load();
    List<ObservableTreeItem> projects = connectionItem.getChildren();
    setProjectItems(projects);
}
Also used : ObservableTreeItem(org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem)

Aggregations

ObservableTreeItem (org.jboss.tools.openshift.internal.ui.treeitem.ObservableTreeItem)16 Test (org.junit.Test)10 IProject (com.openshift.restclient.model.IProject)5 Connection (org.jboss.tools.openshift.core.connection.Connection)4 ProjectViewerComparator (org.jboss.tools.openshift.internal.ui.comparators.ProjectViewerComparator)4 ArrayList (java.util.ArrayList)3 ViewerComparator (org.eclipse.jface.viewers.ViewerComparator)3 IConnection (org.jboss.tools.openshift.common.core.connection.IConnection)3 IReplicationController (com.openshift.restclient.model.IReplicationController)2 IResource (com.openshift.restclient.model.IResource)2 IService (com.openshift.restclient.model.IService)2 MultiListProperty (org.eclipse.core.databinding.property.list.MultiListProperty)2 ObservableListTreeContentProvider (org.eclipse.jface.databinding.viewers.ObservableListTreeContentProvider)2 TreeViewer (org.eclipse.jface.viewers.TreeViewer)2 OpenShiftExplorerLabelProvider (org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerLabelProvider)2 IBuildConfig (com.openshift.restclient.model.IBuildConfig)1 IDeploymentConfig (com.openshift.restclient.model.IDeploymentConfig)1 IRoute (com.openshift.restclient.model.route.IRoute)1 File (java.io.File)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1