throw new NullPointerException();
result.add(new ComparableTabContributor(new VTKPropertyTabContributor(SWTThread.getThreadAccess()), -2, prop, "VTK"));
}
-
+
if (resourceCollection.size() > 0) {
if (resourceCollection.size() > 1)
result.add(new ComparableTabContributor(new MultiSelectionTabContibutor(),0, resourceCollection, "Graph"));
e.printStackTrace();
}
}
- }
+ }
}
+ if (resourceCollection.size() == 1){
+ try {
+ Resource r = resourceCollection.iterator().next();
+ result.add(new ComparableTabContributor(new P3DBasicPropertyTab(!readOnly), 0, r, "Properties"));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
if(result.size() == 0) {
result.add(new ComparableTabContributor(new NoneSelectionTabContributor(),0, resourceCollection, "Empty"));
}
public P3DBasicPropertyTab(boolean enabled) {
this.enabled = enabled;
}
+
+
@Override
public void updatePartName(ISelection forSelection, Consumer<String> updateCallback) {