Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java
index 6f7a2e817b..fb55b620d5 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/ResourceUiDefinition.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2012 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -10,25 +10,28 @@
package org.eclipse.jpt.jpa.ui;
import org.eclipse.jpt.common.core.JptResourceType;
-import org.eclipse.jpt.jpa.ui.structure.JpaStructureProvider;
+import org.eclipse.jpt.common.ui.jface.ItemTreeStateProviderFactoryProvider;
/**
- *
+ * Resource UI definition.
+ * <p>
* Provisional API: This interface is part of an interim API that is still
* under development and expected to change significantly before reaching
* stability. It is available at this early stage to solicit feedback from
* pioneering adopters on the understanding that any code that uses this API
* will almost certainly be broken (repeatedly) as the API evolves.
*/
-public interface ResourceUiDefinition
-{
+public interface ResourceUiDefinition {
/**
- * Return whether this definition provides UI for resource of the given type
+ * Return whether the definition provides UI for resource of the specified
+ * type.
*/
boolean providesUi(JptResourceType resourceType);
-
+
/**
- * Return the structure provider association with this mapping file type.
+ * Return the resource definition's JPA Structure View factory provider.
+ * This is used by the view to build and maintain its tree's content and
+ * labels.
*/
- JpaStructureProvider getStructureProvider();
+ ItemTreeStateProviderFactoryProvider getStructureViewFactoryProvider();
}

Back to the top