Lines 59-71
Link Here
|
59 |
import javax.swing.text.JTextComponent; |
59 |
import javax.swing.text.JTextComponent; |
60 |
import javax.swing.text.Keymap; |
60 |
import javax.swing.text.Keymap; |
61 |
|
61 |
|
62 |
import javax.swing.text.TextAction; |
|
|
63 |
import org.netbeans.editor.BaseAction; |
62 |
import org.netbeans.editor.BaseAction; |
64 |
import org.netbeans.editor.BaseKit; |
63 |
import org.netbeans.editor.BaseKit; |
65 |
import org.netbeans.editor.Utilities; |
64 |
import org.netbeans.editor.Utilities; |
66 |
import org.netbeans.mobility.antext.preprocessor.PPLine; |
65 |
import org.netbeans.mobility.antext.preprocessor.PPLine; |
67 |
import org.netbeans.modules.editor.MainMenuAction; |
66 |
import org.netbeans.modules.editor.MainMenuAction; |
68 |
import org.netbeans.modules.editor.NbEditorKit; |
67 |
import org.netbeans.modules.editor.java.JavaKit; |
69 |
import org.netbeans.modules.mobility.editor.actions.AddElifBlockAction; |
68 |
import org.netbeans.modules.mobility.editor.actions.AddElifBlockAction; |
70 |
import org.netbeans.modules.mobility.editor.actions.AddProjectConfigurationAction; |
69 |
import org.netbeans.modules.mobility.editor.actions.AddProjectConfigurationAction; |
71 |
import org.netbeans.modules.mobility.editor.actions.CreateDebugBlockAction; |
70 |
import org.netbeans.modules.mobility.editor.actions.CreateDebugBlockAction; |
Lines 81-87
Link Here
|
81 |
* @author Adam Sotona |
80 |
* @author Adam Sotona |
82 |
* |
81 |
* |
83 |
*/ |
82 |
*/ |
84 |
public class J2MEKit extends NbEditorKit { |
83 |
public class J2MEKit extends JavaKit { |
85 |
|
84 |
|
86 |
static final long serialVersionUID = -5445285962533684922L; |
85 |
static final long serialVersionUID = -5445285962533684922L; |
87 |
|
86 |
|
Lines 89-99
Link Here
|
89 |
public static final String PROJECT_CLIENT_PROPERTY = "projoject-client-property"; // NOI18N |
88 |
public static final String PROJECT_CLIENT_PROPERTY = "projoject-client-property"; // NOI18N |
90 |
|
89 |
|
91 |
@Override |
90 |
@Override |
92 |
public String getContentType() { |
|
|
93 |
return "text/x-java"; //NOI18N |
94 |
} |
95 |
|
96 |
@Override |
97 |
public Document createDefaultDocument() { |
91 |
public Document createDefaultDocument() { |
98 |
Document doc = new J2MEEditorDocument(getContentType()); |
92 |
Document doc = new J2MEEditorDocument(getContentType()); |
99 |
Object mimeType = doc.getProperty("mimeType"); //NOI18N |
93 |
Object mimeType = doc.getProperty("mimeType"); //NOI18N |