Skip to content

Commit a14b406

Browse files
akurtakovMailaender
authored andcommitted
Remove PerspectiveSupport.getActivePerspective
This method returns String based on perspective label and removing '<' and '>' symnbols. This is error prone and can be lead to different perspectives be misdentified as same one if one relies on this method. It is not used thus it better be removed before someone starts using it.
1 parent edf9101 commit a14b406

File tree

1 file changed

+0
-13
lines changed
  • chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/workbench

1 file changed

+0
-13
lines changed

chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/workbench/PerspectiveSupport.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@ public String getActivePerspectiveId() {
5353
}
5454
}
5555

56-
public String getActivePerspective() {
57-
58-
MPerspective perspective = getActiveMPerspective();
59-
if(perspective != null) {
60-
String perspectiveName = perspective.getLabel();
61-
perspectiveName = perspectiveName.replace("<", "");
62-
perspectiveName = perspectiveName.replace(">", "");
63-
return perspectiveName;
64-
} else {
65-
return "";
66-
}
67-
}
68-
6956
private MPerspective getActiveMPerspective() {
7057

7158
List<MPerspectiveStack> perspectiveStacks = eModelService.findElements(mApplication, null, MPerspectiveStack.class);

0 commit comments

Comments
 (0)