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 546 Details for
Bug 12827
Deadlock calling createExecutableExtension during startup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
code.txt
code.txt (text/plain), 2.13 KB, created by
DJ Houghton
on 2002-04-04 15:28:31 EST
(
hide
)
Description:
code.txt
Filename:
MIME Type:
Creator:
DJ Houghton
Created:
2002-04-04 15:28:31 EST
Size:
2.13 KB
patch
obsolete
> >/** > * EARConfigChangeListener -- tracks the changes in the application.xml > * in an EAR project. > */ >public class EARConfigChangeListener implements IResourceChangeListener { > >/** > * Create a new EARConfigChangeListener. > */ >public EARConfigChangeListener() { > super(); >} > >/** > * Listen for projects being added or removed and act accordingly. > * > * @param event org.eclipse.core.resources.IResourceChangeEvent > */ >public void resourceChanged(IResourceChangeEvent event) { > System.out.println("Resource changed: " + event); > // Print the stack trace. > try { > String hello = null; > hello.toString(); > } catch (Exception e) { > e.printStackTrace(); > } > IResourceDelta delta = event.getDelta(); > System.out.println("Resource delta is: " + delta); > if (delta == null) > return; > > // search for changes to remote file transfer instance using a visitor > try { > delta.accept(new IResourceDeltaVisitor() { > public boolean visit(IResourceDelta delta2) { > IResource resource = delta2.getResource(); > if (resource == null) > return true; > if (EAR_APPLICATION_XML_FILENAME.equals(resource.getName())) { > earConfigChanged(resource.getProject()); > } else if (resource instanceof IProject) { > projectChanged(delta2); > return false; > } > return true; > } > }); > } catch (Exception e) { > } >} > >/** > * React to a change within a project. > * > * @param delta org.eclipse.core.resources.IResourceDelta > */ >protected void projectChanged(IResourceDelta delta) { > IResourceDelta[] children = delta.getAffectedChildren(); > int size = children.length; > for (int i = 0; i < size; i++) { > IResourceDelta child = children[i]; > // look for server instances and configurations > try { > delta.accept(new IResourceDeltaVisitor() { > public boolean visit(IResourceDelta delta2) { > IResource resource = delta2.getResource(); > String resourceName = resource.getName(); > if (EAR_APPLICATION_XML_FILENAME.equals(resource.getName())) { > earConfigChanged(resource.getProject()); > return false; > } else > return true; > } > }); > } catch (Exception e) { > } > } >} >}
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 Raw
Actions:
View
Attachments on
bug 12827
: 546 |
547