home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.xml.BaseDeclaration;
- import java.util.Vector;
-
- class CommentPane$DeclBridge implements CommentPane.Displayable {
- // $FF: synthetic field
- final CommentPane this$0;
- BaseDeclaration decl;
-
- CommentPane$DeclBridge(CommentPane var1) {
- this.this$0 = var1;
- }
-
- public BaseDeclaration getDecl() {
- return this.decl;
- }
-
- public void setDecl(BaseDeclaration var1) {
- if (var1 != this.decl) {
- this.decl = var1;
- }
- }
-
- public void touch(BaseDeclaration var1) {
- this.this$0.getSchemaDoc().touch(var1);
- }
-
- public boolean hasChanges() {
- return true;
- }
-
- public boolean hasPreview() {
- return true;
- }
-
- public boolean isEditable() {
- return this.decl != null && this.this$0.getSchemaDoc().isEditable(this.decl);
- }
-
- public String getAll() {
- return this.decl == null ? "" : this.decl.getCommentsAsString((String)null, CommentPane.TWIXT);
- }
-
- public String getUnkind() {
- return this.decl == null ? "" : this.decl.getCommentsAsString("", CommentPane.TWIXT);
- }
-
- public String getUsage() {
- return this.decl == null ? "" : this.decl.getCommentsAsString("USAGE", CommentPane.TWIXT);
- }
-
- public String getChanges() {
- if (this.decl == null) {
- return null;
- } else {
- String var1 = this.this$0.getSchemaDoc().getPendingChangeComment(this.decl);
- String var2 = this.decl.getCommentsAsString("CHANGES", CommentPane.TWIXT);
- if (var1 == null) {
- return var2;
- } else {
- return var2.length() > 0 ? String.valueOf(String.valueOf(var2).concat(String.valueOf(CommentPane.TWIXT))).concat(String.valueOf(var1)) : var1;
- }
- }
- }
-
- public String getName() {
- return this.decl == null ? "" : XAUI.getObjectName(this.decl.getClassName(), this.decl.getName());
- }
-
- public String getPreview() {
- return this.decl == null ? "" : this.this$0.previewer.getSourcePreview(this.decl);
- }
-
- public void setComments(Vector var1, String var2) {
- this.this$0.semaphoreDontUpdate = true;
- this.decl.updateComments(var1, var2);
- this.this$0.semaphoreDontUpdate = false;
- }
- }
-