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 3750 Details for
Bug 33424
No completion available in local type constructor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
CodeAssist failure testcase
a.txt (text/plain), 3.11 KB, created by
Philipe Mulet
on 2003-02-27 05:55:43 EST
(
hide
)
Description:
CodeAssist failure testcase
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2003-02-27 05:55:43 EST
Size:
3.11 KB
patch
obsolete
>{\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\fnil Microsoft Sans Serif;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}{\f2\fswiss\fcharset0 Arial;}} >{\colortbl ;\red255\green255\blue255;\red63\green127\blue95;\red127\green0\blue85;\red0\green0\blue0;} >\viewkind4\uc1\pard\highlight1\f0\fs18\tab\cf2 /*\cf0\highlight0\par >\cf2\highlight1\tab * Returns whether a given delta contains some information relevant to the JavaModel,\cf0\highlight0\par >\cf2\highlight1\tab * in particular it will not consider SYNC or MARKER only deltas.\cf0\highlight0\par >\cf2\highlight1\tab */\cf0\highlight0\par >\highlight1\tab\cf3\b public\cf0\b0 \cf3\b boolean\cf0\b0 \cf4 isModelAffectedBy(IResourceDelta\cf0 \cf4 delta)\{\cf0\highlight0\par >\highlight1\tab\tab\highlight0\par >\highlight1\tab\tab\cf3\b if\cf0\b0 \cf4 (delta\cf0 \cf4 !=\cf0 \cf3\b null\cf4\b0 )\cf0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\cf3\b try\cf0\b0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\cf3\b class\cf0\b0 \cf4 FoundRelevantDeltaException\cf0 \cf3\b extends\cf0\b0 \cf4 CoreException\cf0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\cf4 Found\lang1033\f1 <CODEASSIST HERE>\cf0\highlight0\lang1036\f0\par >\highlight1\tab\tab\tab\tab\cf4\}\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\cf4 delta.accept(\cf3\b new\cf0\b0 \cf4 IResourceDeltaVisitor()\cf0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\cf3\b public\cf0\b0 \cf3\b boolean\cf0\b0 \cf4 visit(IResourceDelta\cf0 \cf4 delta)\cf0 \cf3\b throws\cf0\b0 \cf4 CoreException\cf0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\cf3\b switch\cf0\b0 \cf4 (delta.getKind())\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\tab\cf3\b case\cf0\b0 \cf4 IResourceDelta.ADDED\cf0 \cf4 :\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\tab\cf3\b case\cf0\b0 \cf4 IResourceDelta.REMOVED\cf0 \cf4 :\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\tab\tab\cf3\b throw\cf0\b0 \cf3\b new\cf0\b0 \cf4 FoundRelevantDeltaException();\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\tab\tab\cf3\b break\cf4\b0 ;\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\tab\cf3\b case\cf0\b0 \cf4 IResourceDelta.CHANGED\cf0 \cf4 :\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\cf4\}\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\tab\cf3\b return\cf0\b0 \cf3\b true\cf4\b0 ;\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\tab\cf4\}\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\cf4\});\cf0\highlight0\par >\highlight1\tab\tab\tab\cf4\}\cf0 \cf3\b catch\cf4\b0 (FoundRelevantDeltaException\cf0 \cf4 e)\cf0 \cf4\{\cf0\highlight0\par >\highlight1\tab\tab\tab\tab\cf3\b return\cf0\b0 \cf3\b true\cf4\b0 ;\cf0\highlight0\par >\highlight1\tab\tab\tab\cf4\}\cf0 \cf3\b catch\cf4\b0 (CoreException\cf0 \cf4 e)\cf0 \cf4\{\cf0 \cf2 // ignore delta if not able to traverse\cf0\highlight0\par >\highlight1\tab\tab\tab\cf4\}\cf0\highlight0\par >\highlight1\tab\tab\cf4\}\cf0\highlight0\par >\highlight1\tab\tab\cf3\b return\cf0\b0 \cf3\b false\cf4\b0 ;\cf0\highlight0\par >\highlight1\tab\cf4\}\cf0\highlight0\par >\f2\fs20\par >} >
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 33424
: 3750