Author: scabanovich
Date: 2007-08-14 10:55:32 -0400 (Tue, 14 Aug 2007)
New Revision: 3124
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
Log:
EXIN-160
Let us suppress that window prompting to add nature, and always try to show as much as
possible in the editor.
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2007-08-14
14:46:39 UTC (rev 3123)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2007-08-14
14:55:32 UTC (rev 3124)
@@ -1148,6 +1148,9 @@
}
public void check(IEditorInput input, String[] natures, String warningKey) {
+ //Suppress check: EXIN-160
+ natures = new String[0];
+
this.input = input;
if(input instanceof IFileEditorInput) {
resource = ((IFileEditorInput)input).getFile();
@@ -1159,11 +1162,12 @@
this.natures = natures;
isAppropriateNature = isAppropriateNature(input);
if(!isAppropriateNature) {
- showWarning();
- if(this.input instanceof IFileEditorInput) {
- resource = ((IFileEditorInput)this.input).getFile();
- }
- isAppropriateNature = isAppropriateNature(this.input);
+//Suppress check: EXIN-160
+// showWarning();
+// if(this.input instanceof IFileEditorInput) {
+// resource = ((IFileEditorInput)this.input).getFile();
+// }
+// isAppropriateNature = isAppropriateNature(this.input);
}
}
Show replies by date