Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 96287 Details for
Bug 166025
Move, Copy, Delete, Rename and Import/Export test assets.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
little patch, see below
166025_fix_UI_exception_and_external_entry.txt (text/plain), 4.40 KB, created by
Bozier jerome
on 2008-04-16 13:25:37 EDT
(
hide
)
Description:
little patch, see below
Filename:
MIME Type:
Creator:
Bozier jerome
Created:
2008-04-16 13:25:37 EDT
Size:
4.40 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.test.ui >Index: src/org/eclipse/hyades/test/ui/util/TestUIUtil.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/util/TestUIUtil.java,v >retrieving revision 1.14 >diff -u -r1.14 TestUIUtil.java >--- src/org/eclipse/hyades/test/ui/util/TestUIUtil.java 28 Feb 2008 16:06:15 -0000 1.14 >+++ src/org/eclipse/hyades/test/ui/util/TestUIUtil.java 16 Apr 2008 17:25:24 -0000 >@@ -12,8 +12,11 @@ > package org.eclipse.hyades.test.ui.util; > > import java.io.File; >+import java.util.ArrayList; >+import java.util.Collection; > import java.util.Iterator; > import java.util.List; >+import java.util.Set; > > import org.eclipse.core.resources.IFile; > import org.eclipse.core.runtime.IAdaptable; >@@ -22,6 +25,11 @@ > import org.eclipse.hyades.models.common.facades.behavioral.INamedElement; > import org.eclipse.hyades.test.core.util.EMFUtil; > import org.eclipse.hyades.test.ui.UiPlugin; >+import org.eclipse.hyades.test.ui.internal.navigator.TestNavigator; >+import org.eclipse.hyades.test.ui.internal.navigator.proxy.reference.ReferenceTypeRegistry; >+import org.eclipse.hyades.test.ui.navigator.EObjectProxyNode; >+import org.eclipse.hyades.test.ui.navigator.IFileProxyManager; >+import org.eclipse.hyades.test.ui.navigator.IProxyNode; > import org.eclipse.hyades.ui.internal.util.UIUtil; > import org.eclipse.ui.IEditorDescriptor; > import org.eclipse.ui.IEditorPart; >@@ -40,11 +48,59 @@ > * > * @author Marcelo Paternostro > * @author Paul E. Slauenwhite >- * @version February 28, 2008 >+ * @author jbozier >+ * @version April 16, 2008 > * @since February 1, 2005 > */ > public class TestUIUtil > { >+ >+ /** >+ * Return list of all file representing EMF resource that are explicitly referenced by the EMF object stored in file >+ * @param file EMF resource used to calculate references >+ * @return list of depending resource, NULL if file is not representing an EMF object >+ */ >+ public static List getExplicitDependencies(IFile file) { >+ if (file == null) { >+ return null; >+ } >+ // get active proxy manager >+ IFileProxyManager proxManager = null; >+ if(PlatformUI.getWorkbench() != null) { >+ TestNavigator nav = TestNavigator.getTestNavigator(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); >+ if (nav != null) { >+ proxManager = nav.getCurrentFileProxyManager(); >+ } >+ } >+ IProxyNode prox = proxManager.getProxy(file, null); >+ if (prox == null) { >+ return null; // no proxy for this resource >+ } >+ >+ List ret = new ArrayList(); >+ EObjectProxyNode eproxy = null; >+ if (prox instanceof EObjectProxyNode) { >+ eproxy = (EObjectProxyNode)prox; >+ } else { >+ return null; >+ } >+ Set allTypes = eproxy.getReferenceTypes(); >+ for (Iterator it = allTypes.iterator(); it.hasNext(); ) { >+ String type = (String)it.next(); >+ if (ReferenceTypeRegistry.getInstance().isExplicit(type)) { >+ Collection references = eproxy.getReferences(type); >+ for (Iterator it2 = references.iterator(); it2.hasNext();) { >+ IProxyNode proxy = (IProxyNode) it2.next(); >+ IFile childFile = (IFile) proxy.getUnderlyingResource(); >+ if (childFile != null) { >+ ret.add(childFile); >+ } >+ } >+ } >+ } >+ return ret; >+ } >+ > /** > * Returns a unique name based on the specified base and list of CMNNamedElement. > * @param baseName >Index: src/org/eclipse/hyades/test/ui/internal/editor/form/ArtifactLocationMapForm.java >=================================================================== >RCS file: /cvsroot/tptp/test/org.eclipse.hyades.test.ui/src/org/eclipse/hyades/test/ui/internal/editor/form/ArtifactLocationMapForm.java,v >retrieving revision 1.11 >diff -u -r1.11 ArtifactLocationMapForm.java >--- src/org/eclipse/hyades/test/ui/internal/editor/form/ArtifactLocationMapForm.java 10 Apr 2008 00:51:02 -0000 1.11 >+++ src/org/eclipse/hyades/test/ui/internal/editor/form/ArtifactLocationMapForm.java 16 Apr 2008 17:25:24 -0000 >@@ -229,6 +229,9 @@ > if(elements[i] instanceof CFGArtifactLocationPair) > { > CFGArtifactLocationPair pair = (CFGArtifactLocationPair)elements[i]; >+ if((pair.getArtifact() == null) || (pair.getLocation() == null)) { >+ continue; >+ } > if(pair.getArtifact().eIsProxy() || pair.getLocation().eIsProxy()) > continue; > resolvedEls.add(pair);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 166025
:
86571
|
86939
|
87044
|
88264
|
88300
|
88607
|
90738
|
90861
|
91404
|
92336
|
92365
|
92366
|
92444
|
92684
|
92820
|
93654
|
95363
|
95370
|
96228
|
96287
|
96841
|
96860
|
98036