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 93131 Details for
Bug 209343
Binary Data Transfer Format for Profiling (Client-side)
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]
BF support in TI
org.eclipse.tptp.platform.common.ui.trace_patch.txt (text/plain), 3.00 KB, created by
Stanislav Polevic
on 2008-03-21 09:52:21 EDT
(
hide
)
Description:
BF support in TI
Filename:
MIME Type:
Creator:
Stanislav Polevic
Created:
2008-03-21 09:52:21 EDT
Size:
3.00 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.tptp.platform.common.ui.trace >Index: src/org/eclipse/hyades/trace/ui/internal/piclient/XMLTraceDataProcessor.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.common.ui.trace/src/org/eclipse/hyades/trace/ui/internal/piclient/XMLTraceDataProcessor.java,v >retrieving revision 1.8 >diff -u -r1.8 XMLTraceDataProcessor.java >--- src/org/eclipse/hyades/trace/ui/internal/piclient/XMLTraceDataProcessor.java 24 Jan 2008 02:30:01 -0000 1.8 >+++ src/org/eclipse/hyades/trace/ui/internal/piclient/XMLTraceDataProcessor.java 21 Mar 2008 13:28:32 -0000 >@@ -37,7 +37,7 @@ > import org.eclipse.hyades.internal.execution.local.control.InactiveAgentException; > import org.eclipse.hyades.loaders.util.InvalidXMLException; > import org.eclipse.hyades.loaders.util.LoadersUtils; >-import org.eclipse.hyades.loaders.util.XMLLoader; >+import org.eclipse.hyades.loaders.util.BinaryLoader; > import org.eclipse.hyades.models.hierarchy.HierarchyPackage; > import org.eclipse.hyades.models.hierarchy.TRCAgent; > import org.eclipse.hyades.models.hierarchy.TRCAgentProxy; >@@ -61,7 +61,7 @@ > import com.ibm.icu.text.DateFormat; > import com.ibm.icu.text.MessageFormat; > >-public class XMLTraceDataProcessor extends XMLLoader implements ExtendedDataServerListener { >+public class XMLTraceDataProcessor extends BinaryLoader implements ExtendedDataServerListener { > //~ Instance fields > // ---------------------------------------------------------------------------- > >@@ -393,6 +393,20 @@ > return true; > } > >+ protected void loadEventHook(byte[] buffer, int offset, int length) { >+ if (firstEvent) { >+ if (length > 1 && !(buffer[offset] == '<' && buffer[offset + 1] == '?')) { >+ LoadersUtils.loadRootEvent(this); >+ } >+ firstEvent = false; >+ } >+ super.loadEvent(buffer, offset, length); >+ } >+ >+ protected void loadEventHook(byte[] buffer, int length) { >+ loadEventHook(buffer, 0, length); >+ } >+ > /** > * Insert the method's description here. Creation date: (3/1/01 12:06:07 PM) > * >@@ -419,13 +433,7 @@ > writeByte(buffer, offset, length); > } > } else { >- if (firstEvent) { >- if (length > 1 && !(buffer[offset] == '<' && buffer[offset + 1] == '?')) { >- LoadersUtils.loadRootEvent(this); >- } >- firstEvent = false; >- } >- super.loadEvent(buffer, offset, length); >+ loadEventHook(buffer, offset, length); > } > } catch (InvalidXMLException e) { > } catch (java.lang.OutOfMemoryError e) { >@@ -479,13 +487,7 @@ > //new emf > // super.loadEvent(newBuffer, length, false, true); > } else { >- if (firstEvent) { >- if (length > 1 && !(buffer[0] == '<' && buffer[1] == '?')) { >- LoadersUtils.loadRootEvent(this); >- } >- firstEvent = false; >- } >- super.loadEvent(newBuffer, length); >+ loadEventHook(newBuffer, length); > } > } catch (InvalidXMLException e) { > } catch (java.lang.OutOfMemoryError 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209343
:
90067
|
90070
|
90455
|
90456
|
90762
|
93128
|
93129
|
93130
| 93131 |
93147
|
93149