Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-11-10 09:06:32 +0000
committercletavernie2011-11-10 09:06:32 +0000
commit1630defc9a2d2534c791ffe1b5e22009d925b810 (patch)
treedff8a476262c113f62b95cb87fea87d621b373b4 /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs
parent0090023b60314283a7d6b6039088d73c2af57740 (diff)
downloadorg.eclipse.papyrus-1630defc9a2d2534c791ffe1b5e22009d925b810.tar.gz
org.eclipse.papyrus-1630defc9a2d2534c791ffe1b5e22009d925b810.tar.xz
org.eclipse.papyrus-1630defc9a2d2534c791ffe1b5e22009d925b810.zip
362162: [Architecture - Refactoring] The plug-ins should be renamed to match their layer's qualified name
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362162
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs/DiagramNavigationDialog.java29
1 files changed, 15 insertions, 14 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs/DiagramNavigationDialog.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs/DiagramNavigationDialog.java
index 37970a105eb..0fdbd62fb5b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs/DiagramNavigationDialog.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/dialogs/DiagramNavigationDialog.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 CEA LIST.
*
- *
+ *
* 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
@@ -16,10 +16,10 @@ import java.util.ArrayList;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.papyrus.core.editor.IMultiDiagramEditor;
-import org.eclipse.papyrus.core.editorsfactory.IPageIconsRegistry;
-import org.eclipse.papyrus.core.services.ServiceException;
-import org.eclipse.papyrus.core.utils.EditorUtils;
+import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
+import org.eclipse.papyrus.infra.core.editorsfactory.IPageIconsRegistry;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.utils.EditorUtils;
import org.eclipse.papyrus.uml.diagram.common.ui.hyperlinkshell.HyperLinkContentProvider;
import org.eclipse.papyrus.uml.diagram.common.ui.hyperlinkshell.HyperLinkLabelProvider;
import org.eclipse.papyrus.uml.diagram.common.ui.hyperlinkshell.HyperlinkObject;
@@ -42,13 +42,13 @@ public class DiagramNavigationDialog extends Dialog {
// prefered dimension
protected int width=350;
protected int height=150;
-
+
protected ArrayList<HyperlinkObject> hyperlinkObjects;
protected HyperLinkContentProvider contentProvider;
private TableViewer tableViewer;
-
+
protected Table availableHyperLink;
-
+
protected ArrayList<HyperlinkObject> hyperlinkResult= new ArrayList<HyperlinkObject>();
/**
@@ -68,10 +68,10 @@ public class DiagramNavigationDialog extends Dialog {
}
@Override
protected Control createContents(Composite parent) {
-
+
parent.setBounds(parent.getBounds().x, parent.getBounds().y, width+50, height+120);
Composite defaultHyperlinkComposite = new Composite(parent, SWT.NONE);
-
+
Label lblHyperlinks = new Label(defaultHyperlinkComposite, SWT.NONE);
lblHyperlinks.setForeground(Display.getCurrent().getSystemColor(SWT.COLOR_BLACK));
lblHyperlinks.setBounds(23, 10,width , 13);
@@ -99,22 +99,23 @@ public class DiagramNavigationDialog extends Dialog {
return defaultHyperlinkComposite;
}
-
+
/**
* get the list of selected hyperlinks
* @return the list
*/
public ArrayList<HyperlinkObject> getSelectedHyperlinks(){
return hyperlinkResult;
-
+
}
/**
*
* @see org.eclipse.jface.dialogs.Dialog#okPressed()
*
*/
+ @Override
protected void okPressed() {
-
+
hyperlinkResult= new ArrayList<HyperlinkObject>();
TableItem[] tableItems=availableHyperLink.getItems();
for(int i=0;i<tableItems.length;i++){
@@ -122,7 +123,7 @@ public class DiagramNavigationDialog extends Dialog {
hyperlinkResult.add((HyperlinkObject)tableItems[i].getData());
}
}
-
+
super.okPressed();
}
}

Back to the top