Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expanded the API tag selection example.

  • Loading branch information...
commit 474e791e48f26ca4f47bc8c08ef1ccffdf5c8911 1 parent 480fbee
@cderoove authored
View
12 ExapusRAP/src/exapus/model/view/ScopedSelection.java
@@ -9,11 +9,17 @@
public class ScopedSelection extends Selection {
- public ScopedSelection(QName name, Scope scope) {
+ public ScopedSelection(QName name, Scope scope, String tag) {
super();
this.name = name;
this.scope = scope;
+ this.tag = tag;
+ }
+
+ public ScopedSelection(QName name, Scope scope) {
+ this(name,scope,null);
}
+
public ScopedSelection(QName name) {
this(name, Scope.PREFIX_SCOPE);
@@ -167,10 +173,6 @@ public String getScopeString() {
public String getTagString() {
return (hasTag() ? getTag() : "");
}
-
-
-
-
}
View
3  ExapusRAP/src/exapus/model/view/ViewFactory.java
@@ -91,7 +91,8 @@ public View testProjectCentricSelectionView() {
public View testAPITagSelectionView() {
View view = new View("API tag selection test", Perspective.API_CENTRIC);
view.addProjectSelection(UniversalSelection.getCurrent());
- view.addAPISelection(new ScopedSelection(new QName("ant"), Scope.ROOT_SCOPE));
+ view.addAPISelection(new ScopedSelection(new QName("ant"), Scope.ROOT_SCOPE));
+ view.addAPISelection(new ScopedSelection(new QName("annotation"), Scope.ROOT_SCOPE, "annotation"));
view.setSourceViewName(TAGGED_API_VIEW_NAME);
return view;
}
View
1  ExapusRAP/src/exapus/model/view/evaluator/ProjectCentricEvaluator.java
@@ -19,7 +19,6 @@ protected ProjectCentricEvaluator(View v) {
protected ICopyingForestVisitor newVisitor() {
return new ProjectCentricSelectionVisitor(getView().getProjectSelections(), getView().getAPISelections());
}
-
@Override
protected FactForest getCompleteForest() {
Please sign in to comment.
Something went wrong with that request. Please try again.