home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.xml.BaseDeclaration;
- import com.extensibility.xml.CommentList;
- import com.extensibility.xml.ExternalSubset;
- import com.extensibility.xml.URI;
- import java.util.Vector;
-
- class CommentPane$DocBridge implements CommentPane.Displayable {
- // $FF: synthetic field
- final CommentPane this$0;
- URI uri;
-
- CommentPane$DocBridge(CommentPane var1) {
- this.this$0 = var1;
- this.uri = this.this$0.getSchemaDoc().getURI();
- }
-
- public URI getURI() {
- return this.uri;
- }
-
- public boolean setURI(URI var1) {
- if (var1 == null) {
- var1 = this.this$0.getSchemaDoc().getURI();
- }
-
- boolean var2 = !this.uri.equals(var1);
- this.uri = var1;
- return var2;
- }
-
- public void touch(BaseDeclaration var1) {
- this.this$0.getSchemaDoc().touch(this.uri);
- }
-
- public boolean hasChanges() {
- return true;
- }
-
- public boolean hasPreview() {
- return false;
- }
-
- public boolean isEditable() {
- return this.this$0.getSchemaDoc().isEditable(this.uri);
- }
-
- public String getAll() {
- CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
- return var1 == null ? null : var1.getCommentsAsString((String)null, CommentPane.TWIXT);
- }
-
- public String getUnkind() {
- CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
- return var1 == null ? null : var1.getCommentsAsString("", CommentPane.TWIXT);
- }
-
- public String getUsage() {
- CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
- return var1 == null ? null : var1.getCommentsAsString("USAGE", CommentPane.TWIXT);
- }
-
- public String getChanges() {
- return this.this$0.getSchemaDoc().getVersionInfoAsString(this.getURI());
- }
-
- public String getPreview() {
- return null;
- }
-
- public String getName() {
- if (this.uri.equals(this.this$0.getSchemaDoc().getURI())) {
- return XAUI.getObjectName(this.this$0.getSchemaDoc().getClassName(), this.this$0.getSchemaDoc().getName());
- } else {
- ExternalSubset var1 = this.this$0.getSchemaDoc().getSubset(this.uri);
- return XAUI.getObjectName(var1.getClassName(), ((BaseDeclaration)var1).getName());
- }
- }
-
- public void setComments(Vector var1, String var2) {
- this.this$0.semaphoreDontUpdate = true;
- this.this$0.getSchemaDoc().setComments(this.uri, var1, var2);
- this.this$0.semaphoreDontUpdate = false;
- }
- }
-