Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-08-19 07:39:33 +0000
committerspingel2009-08-19 07:39:33 +0000
commit9cc31453d72ba613b09e90550606e184b5aa53c0 (patch)
treecc26b1601fafafb334ef25655dc08ba36ad15909 /org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox
parentbb957036224723fe75ec850b793fd50469187270 (diff)
downloadorg.eclipse.mylyn.incubator-9cc31453d72ba613b09e90550606e184b5aa53c0.tar.gz
org.eclipse.mylyn.incubator-9cc31453d72ba613b09e90550606e184b5aa53c0.tar.xz
org.eclipse.mylyn.incubator-9cc31453d72ba613b09e90550606e184b5aa53c0.zip
NEW - bug 219385: [e3.4] remove reflective legacy calls
https://bugs.eclipse.org/bugs/show_bug.cgi?id=219385
Diffstat (limited to 'org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox')
-rw-r--r--org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/views/RelatedElementsPopupDialog.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/views/RelatedElementsPopupDialog.java b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/views/RelatedElementsPopupDialog.java
index 78b38795..11ccb23d 100644
--- a/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/views/RelatedElementsPopupDialog.java
+++ b/org.eclipse.mylyn.sandbox.ui/src/org/eclipse/mylyn/internal/sandbox/ui/views/RelatedElementsPopupDialog.java
@@ -109,10 +109,8 @@ public class RelatedElementsPopupDialog extends PopupDialog implements IInformat
private int degree = 2;
- // TODO e3.4 move to new api
- @SuppressWarnings("deprecation")
public RelatedElementsPopupDialog(Shell parent, int shellStyle) {
- super(parent, shellStyle, true, true, true, true, null, "Context Search");
+ super(parent, shellStyle, true, true, true, true, true, null, "Context Search");
ContextCore.getContextManager().addListener(REFRESH_UPDATE_LISTENER);
for (AbstractRelationProvider provider : ContextCorePlugin.getDefault().getRelationProviders()) {
provider.setEnabled(true);
@@ -318,8 +316,6 @@ public class RelatedElementsPopupDialog extends PopupDialog implements IInformat
// See IInformationControlExtension2
}
- // TODO e3.4 move to new api
- @SuppressWarnings("deprecation")
public void setLocation(Point location) {
/*
* If the location is persisted, it gets managed by PopupDialog - fine. Otherwise, the location is
@@ -332,7 +328,7 @@ public class RelatedElementsPopupDialog extends PopupDialog implements IInformat
* the call to constrainShellSize in PopupDialog.open will still ensure that the shell is
* entirely visible.
*/
- if ((getPersistBounds() == false) || (getDialogSettings() == null)) {
+ if (getPersistLocation() == false || getDialogSettings() == null) {
getShell().setLocation(location);
}
}

Back to the top