You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by jo...@apache.org on 2011/08/12 13:00:51 UTC
svn commit: r1157047 [18/27] - in
/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide: ./ .settings/
META-INF/ icons/ schema/ src/ src/main/ src/main/java/ src/main/java/org/
src/main/java/org/apache/ src/main/java/org/apache/uima/ src/main/java/org...
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,133 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.uima.textmarker.ide.parser.ast.TextMarkerModuleDeclaration;
+import org.apache.uima.textmarker.ide.ui.text.TextMarkerTextTools;
+import org.eclipse.dltk.ast.ASTListNode;
+import org.eclipse.dltk.ast.ASTNode;
+import org.eclipse.dltk.ast.declarations.Argument;
+import org.eclipse.dltk.ast.declarations.MethodDeclaration;
+import org.eclipse.dltk.ast.declarations.ModuleDeclaration;
+import org.eclipse.dltk.ast.declarations.TypeDeclaration;
+import org.eclipse.dltk.compiler.env.ISourceModule;
+import org.eclipse.dltk.core.SourceParserUtil;
+import org.eclipse.dltk.ui.editor.highlighting.HighlightedPosition;
+import org.eclipse.dltk.ui.editor.highlighting.ISemanticHighlightingRequestor;
+import org.eclipse.dltk.ui.editor.highlighting.SemanticHighlighting;
+
+
+public class DefaultTextMarkerSemanticHighlightingExtension implements
+ ISemanticHighlightingExtension {
+
+ private SemanticHighlighting[] highlightings = new SemanticHighlighting[] {
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_DECLARATION_DEFINITION_COLOR,
+ null, null),
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_FUNCTION_COLOR, null, null),
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_ACTION_COLOR, null, null),
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_CONDITION_COLOR, null, null),
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_STRING_COLOR, null, null),
+ new TextMarkerTextTools.SH(TextMarkerPreferenceConstants.EDITOR_VARIABLE_COLOR,
+ TextMarkerPreferenceConstants.EDITOR_CONDITION_COLOR, null) };
+
+ private static final int HL_PROCEDURES = 0;
+
+ private static final int HL_ARGUMENTS = 1;
+
+ private static final int HL_CLASSES = 2;
+
+ private static final int HL_BASE_CLASSES = 3;
+
+ private static final int HL_STRINGS = 4;
+
+ private static final int HL_VARIABLES = 5;
+
+ public DefaultTextMarkerSemanticHighlightingExtension() {
+ }
+
+ public HighlightedPosition[] calculatePositions(ASTNode node,
+ ISemanticHighlightingRequestor requestor) {
+
+ // Check TextMarker procedures
+ if (node instanceof MethodDeclaration) {
+
+ MethodDeclaration m = (MethodDeclaration) node;
+ requestor.addPosition(m.getNameStart(), m.getNameEnd(), HL_PROCEDURES);
+
+ }
+
+ if (node instanceof Argument) {
+ Argument m = (Argument) node;
+ requestor.addPosition(m.getNameStart(), m.getNameEnd(), HL_ARGUMENTS);
+
+ }
+
+ if (node instanceof TypeDeclaration) {
+
+ TypeDeclaration t = (TypeDeclaration) node;
+ List children;
+
+ // Handle base classes highlighting
+ ASTListNode s = t.getSuperClasses();
+
+ if (s != null && s.getChilds() != null) {
+ children = s.getChilds();
+ Iterator it = children.iterator();
+ while (it.hasNext()) {
+ ASTNode n = (ASTNode) it.next();
+
+ requestor.addPosition(n.sourceStart(), n.sourceEnd(), HL_BASE_CLASSES);
+
+ }
+ }
+
+ requestor.addPosition(t.getNameStart(), t.getNameEnd(), HL_CLASSES);
+ }
+
+ return null;
+
+ }
+
+ public void processNode(ASTNode node, ISemanticHighlightingRequestor requestor) {
+ calculatePositions(node, requestor);
+
+ }
+
+ public SemanticHighlighting[] getHighlightings() {
+ return highlightings;
+ }
+
+ public void doOtherHighlighting(ISourceModule code,
+ final ISemanticHighlightingRequestor semanticHighlightingRequestor) {
+ ModuleDeclaration moduleDeclaration = SourceParserUtil
+ .getModuleDeclaration((org.eclipse.dltk.core.ISourceModule) (code.getModelElement()));
+ if (moduleDeclaration instanceof TextMarkerModuleDeclaration) {
+ TextMarkerModuleDeclaration md = (TextMarkerModuleDeclaration) moduleDeclaration;
+ if (md != null) {
+
+ // do highlightings
+
+ }
+ }
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/DefaultTextMarkerSemanticHighlightingExtension.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,139 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerFileCreationWizard;
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerPackageCreationWizard;
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerProjectCreationWizard;
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+import org.eclipse.ui.console.IConsoleConstants;
+import org.eclipse.ui.progress.IProgressConstants;
+
+public class ExplainPerspective implements IPerspectiveFactory {
+
+ public static final String FAILED_RULES = "org.apache.uima.textmarker.explain.failed";
+
+ public static final String MATCHED_RULES = "org.apache.uima.textmarker.explain.matched";
+
+ public static final String RULE_ELEMENTS = "org.apache.uima.textmarker.explain.element";
+
+ public static final String APPLIED_RULES = "org.apache.uima.textmarker.explain.apply";
+
+ public static final String SELECTION_RULES = "org.apache.uima.textmarker.explain.selection";
+
+ public static final String RULE_LIST = "org.apache.uima.textmarker.explain.rulelist";
+
+ public static final String QUERY = "org.apache.uima.textmarker.query.ui.ScriptQueryView";
+
+ public static final String BASIC_STREAM = "org.apache.uima.textmarker.explain.basic";
+
+ public static final String PALETTE_VIEW = "org.apache.uima.cev.views.palette";
+
+ public static final String TYPE_BROWSER = "org.apache.uima.cev.views.typeBrowser";
+
+ public static final String SELECTION_VIEW = "org.apache.uima.cev.views.selection";
+
+ public static final String ANNOTATION_EDITOR = "org.apache.uima.cev.views.editor";
+
+ public static final String SCRIPT_EXPLORER = "org.eclipse.dltk.ui.ScriptExplorer";
+
+ public static final String NEW_FOLDER_WIZARD = "org.eclipse.ui.wizards.new.folder"; //$NON-NLS-1$
+
+ public static final String NEW_FILE_WIZARD = "org.eclipse.ui.wizards.new.file"; //$NON-NLS-1$
+
+ public static final String NEW_UNTITLED_TEXT_FILE_WIZARD = "org.eclipse.ui.editors.wizards.UntitledTextFileWizard"; //$NON-NLS-1$
+
+ public static final String ID_NEW_SOURCE_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.NewSourceFolderCreationWizard";
+
+ public static final String ID_NEW_PACKAGE_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.NewPackageCreationWizard";
+
+ protected void addNewWizardShortcuts(IPageLayout layout) {
+ layout.addNewWizardShortcut(TextMarkerProjectCreationWizard.ID_WIZARD);
+ layout.addNewWizardShortcut(TextMarkerFileCreationWizard.ID_WIZARD);
+
+ layout.addNewWizardShortcut(ID_NEW_SOURCE_WIZARD);
+ layout.addNewWizardShortcut(TextMarkerPackageCreationWizard.ID_WIZARD);
+
+ layout.addNewWizardShortcut(NEW_FOLDER_WIZARD);
+ layout.addNewWizardShortcut(NEW_FILE_WIZARD);
+ layout.addNewWizardShortcut(NEW_UNTITLED_TEXT_FILE_WIZARD);
+ }
+
+ protected void addShowViewShortcuts(IPageLayout layout) {
+ layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
+ layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+ layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
+
+ layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
+ layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
+
+ layout.addShowViewShortcut(SCRIPT_EXPLORER);
+ layout.addShowViewShortcut(BASIC_STREAM);
+ layout.addShowViewShortcut(PALETTE_VIEW);
+ layout.addShowViewShortcut(TYPE_BROWSER);
+ layout.addShowViewShortcut(SELECTION_VIEW);
+ layout.addShowViewShortcut(ANNOTATION_EDITOR);
+ layout.addShowViewShortcut(QUERY);
+
+ }
+
+ public void createFolders(IPageLayout layout) {
+ final String editorArea = layout.getEditorArea();
+
+ IFolderLayout rightFolder = layout.createFolder("rightFolder", IPageLayout.RIGHT, (float) 0.75,
+ editorArea);
+ rightFolder.addView(BASIC_STREAM);
+ rightFolder.addView(APPLIED_RULES);
+ rightFolder.addView(SELECTION_RULES);
+ rightFolder.addView(RULE_LIST);
+
+ IFolderLayout ruleFolder = layout.createFolder("ruleFolder", IPageLayout.BOTTOM, (float) 0.6,
+ "rightFolder");
+ ruleFolder.addView(RULE_ELEMENTS);
+
+ IFolderLayout navigationFolder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2,
+ editorArea);
+ navigationFolder.addView(SCRIPT_EXPLORER);
+
+ IFolderLayout matchedFolder = layout.createFolder("matchedFolder", IPageLayout.BOTTOM,
+ (float) 0.75, editorArea);
+ matchedFolder.addView(MATCHED_RULES);
+
+ IFolderLayout failedFolder = layout.createFolder("failedFolder", IPageLayout.BOTTOM,
+ (float) 0.75, editorArea);
+ failedFolder.addView(FAILED_RULES);
+
+ }
+
+ protected void addPerspectiveShotcuts(IPageLayout layout) {
+ layout.addPerspectiveShortcut("org.apache.uima.textmarker.ide.ui.TextMarkerPerspective");
+ }
+
+ public void createInitialLayout(IPageLayout layout) {
+ createFolders(layout);
+ addShowViewShortcuts(layout);
+ addNewWizardShortcuts(layout);
+ addPerspectiveShotcuts(layout);
+
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ExplainPerspective.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.eclipse.dltk.ast.ASTNode;
+import org.eclipse.dltk.ui.editor.highlighting.ISemanticHighlightingRequestor;
+import org.eclipse.dltk.ui.editor.highlighting.SemanticHighlighting;
+
+public interface ISemanticHighlightingExtension {
+
+ SemanticHighlighting[] getHighlightings();
+
+ void processNode(ASTNode node, ISemanticHighlightingRequestor requestor);
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/ISemanticHighlightingExtension.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.dltk.ui.PluginImagesHelper;
+import org.eclipse.jface.resource.ImageDescriptor;
+
+public class TextMarkerImages {
+ private static final PluginImagesHelper helper = new PluginImagesHelper(TextMarkerIdePlugin
+ .getDefault().getBundle(), new Path("/icons"));
+
+ public static final ImageDescriptor PROJECT_DECARATOR = helper.createUnManaged("", "tm_ovr.gif");
+
+ public static final ImageDescriptor DESC_WIZBAN_PROJECT_CREATION = helper.createUnManaged("",
+ "projectcreate_wiz.png");
+
+ public static final ImageDescriptor DESC_WIZBAN_FILE_CREATION = helper.createUnManaged("",
+ "filecreate_wiz.png");
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerImages.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.core.TextMarkerConstants;
+import org.eclipse.jface.text.IDocument;
+
+
+public interface TextMarkerPartitions {
+
+ public final static String TM_PARTITIONING = TextMarkerConstants.TM_PARTITIONING;
+
+ public final static String TM_COMMENT = "__textmarker_comment";
+
+ public final static String TM_STRING = "__textmarker_string";
+
+ public static final String TM_INNER_CODE = "__tm_inner_code";
+
+ public final static String[] TM_PARTITION_TYPES = new String[] { TextMarkerPartitions.TM_STRING,
+ TextMarkerPartitions.TM_COMMENT, IDocument.DEFAULT_CONTENT_TYPE };
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPartitions.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,142 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerFileCreationWizard;
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerPackageCreationWizard;
+import org.apache.uima.textmarker.ide.ui.wizards.TextMarkerProjectCreationWizard;
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+import org.eclipse.ui.console.IConsoleConstants;
+import org.eclipse.ui.progress.IProgressConstants;
+
+public class TextMarkerPerspective implements IPerspectiveFactory {
+
+ public static final String BASIC_STREAM = "org.apache.uima.textmarker.explain.basic";
+
+ public static final String PALETTE_VIEW = "org.apache.uima.cev.views.palette";
+
+ public static final String TYPE_BROWSER = "org.apache.uima.cev.views.annotationBrowser";
+
+ public static final String SELECTION_VIEW = "org.apache.uima.cev.views.selection";
+
+ public static final String ANNOTATION_EDITOR = "org.apache.uima.cev.views.editor";
+
+ public static final String ANNOTATION_TESTING = "org.apache.uima.textmarker.testing.TestingView";
+
+ public static final String QUERY = "org.apache.uima.textmarker.query.ui.ScriptQueryView";
+
+ public static final String TEXTRULER = "org.apache.uima.textmarker.ml.MainView";
+
+ public static final String SCRIPT_EXPLORER = "org.eclipse.dltk.ui.ScriptExplorer";
+
+ public static final String NEW_FOLDER_WIZARD = "org.eclipse.ui.wizards.new.folder"; //$NON-NLS-1$
+
+ public static final String NEW_FILE_WIZARD = "org.eclipse.ui.wizards.new.file"; //$NON-NLS-1$
+
+ public static final String NEW_UNTITLED_TEXT_FILE_WIZARD = "org.eclipse.ui.editors.wizards.UntitledTextFileWizard"; //$NON-NLS-1$
+
+ public static final String ID_NEW_SOURCE_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.NewSourceFolderCreationWizard";
+
+ public static final String ID_NEW_PACKAGE_WIZARD = "org.apache.uima.textmarker.ide.ui.wizards.NewPackageCreationWizard";
+
+ protected void addNewWizardShortcuts(IPageLayout layout) {
+ layout.addNewWizardShortcut(TextMarkerProjectCreationWizard.ID_WIZARD);
+ layout.addNewWizardShortcut(TextMarkerFileCreationWizard.ID_WIZARD);
+
+ layout.addNewWizardShortcut(ID_NEW_SOURCE_WIZARD);
+ layout.addNewWizardShortcut(TextMarkerPackageCreationWizard.ID_WIZARD);
+
+ layout.addNewWizardShortcut(NEW_FOLDER_WIZARD);
+ layout.addNewWizardShortcut(NEW_FILE_WIZARD);
+ layout.addNewWizardShortcut(NEW_UNTITLED_TEXT_FILE_WIZARD);
+ }
+
+ protected void addShowViewShortcuts(IPageLayout layout) {
+ layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
+ layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+ layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
+
+ layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
+ layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
+
+ layout.addShowViewShortcut(SCRIPT_EXPLORER);
+ layout.addShowViewShortcut(BASIC_STREAM);
+ layout.addShowViewShortcut(PALETTE_VIEW);
+ layout.addShowViewShortcut(TYPE_BROWSER);
+ layout.addShowViewShortcut(SELECTION_VIEW);
+ layout.addShowViewShortcut(TEXTRULER);
+ layout.addShowViewShortcut(ANNOTATION_EDITOR);
+ layout.addShowViewShortcut(ANNOTATION_TESTING);
+ layout.addShowViewShortcut(QUERY);
+
+ }
+
+ protected void addActionSets(IPageLayout layout) {
+
+ }
+
+ protected void createFolders(IPageLayout layout) {
+ final String editorArea = layout.getEditorArea();
+
+ IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75,
+ editorArea);
+ rightFolder.addView(IPageLayout.ID_OUTLINE);
+ rightFolder.addView(TYPE_BROWSER);
+ rightFolder.addView(PALETTE_VIEW);
+ rightFolder.addView(BASIC_STREAM);
+
+ // Folder
+ IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2, editorArea); //$NON-NLS-1$
+
+ folder.addView(SCRIPT_EXPLORER);
+ folder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
+
+ // Output folder
+ IFolderLayout outputFolder = layout.createFolder(
+ "bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
+
+ outputFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
+ outputFolder.addView(IPageLayout.ID_TASK_LIST);
+ outputFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
+ outputFolder.addView(SELECTION_VIEW);
+ outputFolder.addView(TEXTRULER);
+ outputFolder.addView(ANNOTATION_EDITOR);
+ outputFolder.addView(ANNOTATION_TESTING);
+ outputFolder.addView(QUERY);
+
+ outputFolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
+ outputFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
+ outputFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
+ }
+
+ protected void addPerspectiveShotcuts(IPageLayout layout) {
+ layout.addPerspectiveShortcut("org.apache.uima.textmarker.ide.ui.explainPerspective");
+ }
+
+ public void createInitialLayout(IPageLayout layout) {
+ createFolders(layout);
+ addActionSets(layout);
+ addShowViewShortcuts(layout);
+ addNewWizardShortcuts(layout);
+ addPerspectiveShotcuts(layout);
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPerspective.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,320 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.ui.text.TextMarkerColorConstants;
+import org.eclipse.dltk.ui.CodeFormatterConstants;
+import org.eclipse.dltk.ui.PreferenceConstants;
+import org.eclipse.dltk.ui.preferences.NewScriptProjectPreferencePage;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.swt.graphics.RGB;
+
+
+public class TextMarkerPreferenceConstants extends PreferenceConstants {
+
+ public static final String EDITOR_FOLDING_IMPORTS = "editor_folding_default_imports"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_BLOCKS = "editor_folding_blocks"; //$NON-NLS-1$
+
+ public static final int EDITOR_FOLDING_BLOCKS_OFF = 0;
+
+ public static final int EDITOR_FOLDING_BLOCKS_INCLUDE = 1;
+
+ public static final int EDITOR_FOLDING_BLOCKS_EXCLUDE = 2;
+
+ public static final String EDITOR_FOLDING_INCLUDE_LIST = "editor_folding_include_list"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_EXCLUDE_LIST = "editor_folding_exclude_list"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_INIT_COMMENTS = "editor_folding_init_comments"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_INIT_NAMESPACES = "editor_folding_init_namespaces"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_INIT_BLOCKS = "editor_folding_init_blocks"; //$NON-NLS-1$
+
+ public static final String EDITOR_FOLDING_COMMENTS_WITH_NEWLINES = "editor_folding_comments_lines"; //$NON-NLS-1$
+
+ public static final String DOC_MAN_PAGES_LOCATIONS = "doc_man_pages_locations";
+
+ public static final String EDITOR_FOLDING_COMMENTS_FOLDING = "editor_folding_comments";
+
+ public final static String EDITOR_SINGLE_LINE_COMMENT_COLOR = TextMarkerColorConstants.TM_SINGLE_LINE_COMMENT;
+
+ public final static String EDITOR_SINGLE_LINE_COMMENT_BOLD = TextMarkerColorConstants.TM_SINGLE_LINE_COMMENT
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_SINGLE_LINE_COMMENT_ITALIC = TextMarkerColorConstants.TM_SINGLE_LINE_COMMENT
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_SINGLE_LINE_COMMENT_STRIKETHROUGH = TextMarkerColorConstants.TM_SINGLE_LINE_COMMENT
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_SINGLE_LINE_COMMENT_UNDERLINE = TextMarkerColorConstants.TM_SINGLE_LINE_COMMENT
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_NUMBER_COLOR = TextMarkerColorConstants.TM_NUMBER;
+
+ public final static String EDITOR_NUMBER_BOLD = TextMarkerColorConstants.TM_NUMBER
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_NUMBER_ITALIC = TextMarkerColorConstants.TM_NUMBER
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_NUMBER_STRIKETHROUGH = TextMarkerColorConstants.TM_NUMBER
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_NUMBER_UNDERLINE = TextMarkerColorConstants.TM_NUMBER
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_STRING_COLOR = TextMarkerColorConstants.TM_STRING;
+
+ public final static String EDITOR_STRING_BOLD = TextMarkerColorConstants.TM_STRING
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_STRING_ITALIC = TextMarkerColorConstants.TM_STRING
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_STRING_STRIKETHROUGH = TextMarkerColorConstants.TM_STRING
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_STRING_UNDERLINE = TextMarkerColorConstants.TM_STRING
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_FUNCTION_COLOR = TextMarkerColorConstants.TM_FUNCTION;
+
+ public final static String EDITOR_FUNCTION_COLOR_BOLD = TextMarkerColorConstants.TM_FUNCTION
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_FUNCTION_COLOR_ITALIC = TextMarkerColorConstants.TM_FUNCTION
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_FUNCTION_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_FUNCTION
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_FUNCTION_COLOR_UNDERLINE = TextMarkerColorConstants.TM_FUNCTION
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_CONDITION_COLOR = TextMarkerColorConstants.TM_CONDITION;
+
+ public final static String EDITOR_CONDITION_COLOR_BOLD = TextMarkerColorConstants.TM_CONDITION
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_CONDITION_COLOR_ITALIC = TextMarkerColorConstants.TM_CONDITION
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_CONDITION_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_CONDITION
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_CONDITION_COLOR_UNDERLINE = TextMarkerColorConstants.TM_CONDITION
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_ACTION_COLOR = TextMarkerColorConstants.TM_ACTION;
+
+ public final static String EDITOR_ACTION_COLOR_BOLD = TextMarkerColorConstants.TM_ACTION
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_ACTION_COLOR_ITALIC = TextMarkerColorConstants.TM_ACTION
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_ACTION_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_ACTION
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_ACTION_COLOR_UNDERLINE = TextMarkerColorConstants.TM_ACTION
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_THEN_COLOR = TextMarkerColorConstants.TM_THEN;
+
+ public final static String EDITOR_THEN_COLOR_BOLD = TextMarkerColorConstants.TM_THEN
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_THEN_COLOR_ITALIC = TextMarkerColorConstants.TM_THEN
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_THEN_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_THEN
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_THEN_COLOR_UNDERLINE = TextMarkerColorConstants.TM_THEN
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_DECLARATION_DEFINITION_COLOR = TextMarkerColorConstants.TM_DECLARATION;
+
+ public final static String EDITOR_DECLARATION_DEFINITION_COLOR_BOLD = TextMarkerColorConstants.TM_DECLARATION
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_DECLARATION_DEFINITION_COLOR_ITALIC = TextMarkerColorConstants.TM_DECLARATION
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_DECLARATION_DEFINITION_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_DECLARATION
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_DECLARATION_DEFINITION_COLOR_UNDERLINE = TextMarkerColorConstants.TM_DECLARATION
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_BASICSYMBOL_DEFINITION_COLOR = TextMarkerColorConstants.TM_BASICSYMBOL;
+
+ public final static String EDITOR_BASICSYMBOL_DEFINITION_COLOR_BOLD = TextMarkerColorConstants.TM_BASICSYMBOL
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_BASICSYMBOL_DEFINITION_COLOR_ITALIC = TextMarkerColorConstants.TM_BASICSYMBOL
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_BASICSYMBOL_DEFINITION_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_BASICSYMBOL
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_BASICSYMBOL_DEFINITION_COLOR_UNDERLINE = TextMarkerColorConstants.TM_BASICSYMBOL
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_DOC_COMMENT_COLOR = TextMarkerColorConstants.TM_DOC_COMMENT;
+
+ public final static String EDITOR_DOC_COMMENT_COLOR_BOLD = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_DOC_COMMENT_COLOR_ITALIC = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_DOC_COMMENT_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_DOC_COMMENT_COLOR_UNDERLINE = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_VARIABLE_COLOR = TextMarkerColorConstants.TM_DOC_COMMENT;
+
+ public final static String EDITOR_VARIABLE_COLOR_BOLD = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_BOLD_SUFFIX;
+
+ public final static String EDITOR_VARIABLE_COLOR_ITALIC = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_ITALIC_SUFFIX;
+
+ public final static String EDITOR_VARIABLE_COLOR_STRIKETHROUGH = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_STRIKETHROUGH_SUFFIX;
+
+ public final static String EDITOR_VARIABLE_COLOR_UNDERLINE = TextMarkerColorConstants.TM_DOC_COMMENT
+ + EDITOR_UNDERLINE_SUFFIX;
+
+ public final static String EDITOR_SMART_PASTE_MODE = "smartPasteMode"; //$NON-NLS-1$
+
+ public final static int EDITOR_SMART_PASTE_MODE_SIMPLE = 1;
+
+ public final static int EDITOR_SMART_PASTE_MODE_FULL = 2;
+
+ public static final String DOC_TM_PAGES_LOCATIONS = "doc_tm_pages_location";
+
+ public static final String COMMENT_TASK_TAGS = TextMarkerColorConstants.TM_TODO_TAG;// TextMarkerColorConstants
+
+ public static final String COMMENT_TASK_TAGS_BOLD = COMMENT_TASK_TAGS + EDITOR_BOLD_SUFFIX;
+
+ /**
+ * A preference that controls the selected formatter.
+ */
+ public static final String FORMATTER_ID = "formatterId"; //$NON-NLS-1$
+
+ public static void initializeDefaultValues(IPreferenceStore store) {
+ PreferenceConstants.initializeDefaultValues(store);
+
+ PreferenceConverter.setDefault(store, COMMENT_TASK_TAGS, new RGB(127, 159, 191));
+ store.setDefault(COMMENT_TASK_TAGS_BOLD, true);
+
+ PreferenceConverter.setDefault(store,
+ TextMarkerPreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_COLOR, new RGB(63, 127, 95));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_BOLD, false);
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_SINGLE_LINE_COMMENT_ITALIC, false);
+
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_DOC_COMMENT_COLOR,
+ new RGB(63, 127, 95));
+
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_STRING_COLOR,
+ new RGB(42, 0, 255));
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_NUMBER_COLOR,
+ new RGB(128, 0, 0));
+
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_VARIABLE_COLOR,
+ new RGB(200, 0, 0));
+
+ // Functions
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_FUNCTION_COLOR,
+ new RGB(50, 50, 200));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FUNCTION_COLOR_BOLD, true);
+
+ // Conditions
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_CONDITION_COLOR,
+ new RGB(0, 128, 0));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_CONDITION_COLOR_BOLD, true);
+
+ // Actions
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_ACTION_COLOR,
+ new RGB(0, 0, 128));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_ACTION_COLOR_BOLD, true);
+
+ // Then
+ PreferenceConverter.setDefault(store, TextMarkerPreferenceConstants.EDITOR_THEN_COLOR, new RGB(
+ 0, 0, 0));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_THEN_COLOR_BOLD, true);
+
+ // Declarations
+ PreferenceConverter.setDefault(store,
+ TextMarkerPreferenceConstants.EDITOR_DECLARATION_DEFINITION_COLOR, new RGB(128, 0, 0));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_DECLARATION_DEFINITION_COLOR_BOLD, true);
+
+ // basic tokens
+ PreferenceConverter.setDefault(store,
+ TextMarkerPreferenceConstants.EDITOR_BASICSYMBOL_DEFINITION_COLOR, new RGB(128, 128,
+ 128));
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_BASICSYMBOL_DEFINITION_COLOR_BOLD, true);
+
+ store.setDefault(PreferenceConstants.EDITOR_CLOSE_STRINGS, false);
+ store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACKETS, true);
+ store.setDefault(PreferenceConstants.EDITOR_CLOSE_BRACES, true);
+ store.setDefault(PreferenceConstants.EDITOR_SMART_TAB, true);
+ store.setDefault(PreferenceConstants.EDITOR_SMART_PASTE, true);
+ store.setDefault(PreferenceConstants.EDITOR_SMART_HOME_END, true);
+ store.setDefault(PreferenceConstants.EDITOR_SUB_WORD_NAVIGATION, true);
+ store.setDefault(PreferenceConstants.EDITOR_TAB_WIDTH, 4);
+ store.setDefault(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE, true);
+
+ // folding
+ store.setDefault(PreferenceConstants.EDITOR_FOLDING_ENABLED, true);
+ store.setDefault(PreferenceConstants.EDITOR_COMMENTS_FOLDING_ENABLED, true);
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS,
+ TextMarkerPreferenceConstants.EDITOR_FOLDING_BLOCKS_EXCLUDE);
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FOLDING_INCLUDE_LIST, "BLOCK");
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FOLDING_EXCLUDE_LIST, "");
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FOLDING_COMMENTS_WITH_NEWLINES, true);
+ store.setDefault(TextMarkerPreferenceConstants.EDITOR_FOLDING_INIT_COMMENTS, true);
+ store.setDefault(PreferenceConstants.EDITOR_FOLDING_LINES_LIMIT, 5);
+
+ store.setDefault(CodeFormatterConstants.FORMATTER_TAB_CHAR, CodeFormatterConstants.SPACE);
+ store.setDefault(CodeFormatterConstants.FORMATTER_TAB_SIZE, "4");
+ store.setDefault(CodeFormatterConstants.FORMATTER_INDENTATION_SIZE, "4");
+
+ NewScriptProjectPreferencePage.initDefaults(store);
+
+ store.setDefault(PreferenceConstants.APPEARANCE_COMPRESS_PACKAGE_NAMES, false);
+ store.setDefault(PreferenceConstants.APPEARANCE_METHOD_RETURNTYPE, false);
+ store.setDefault(PreferenceConstants.APPEARANCE_METHOD_TYPEPARAMETERS, true);
+ store.setDefault(PreferenceConstants.APPEARANCE_PKG_NAME_PATTERN_FOR_PKG_VIEW, ""); //$NON-NLS-1$
+
+ store.setDefault(PreferenceConstants.SHOW_SOURCE_MODULE_CHILDREN, true);
+
+ store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS, ".");
+
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerPreferenceConstants.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.core.TextMarkerNature;
+import org.eclipse.dltk.ui.AbstractScriptProjectDecorator;
+import org.eclipse.jface.resource.ImageDescriptor;
+
+
+public class TextMarkerProjectDecorator extends AbstractScriptProjectDecorator {
+
+ /*
+ * @see org.eclipse.dltk.ui.AbstractScriptProjectDecorator#getNatureId()
+ */
+ @Override
+ protected String getNatureId() {
+ return TextMarkerNature.NATURE_ID;
+ }
+
+ /*
+ * @see org.eclipse.dltk.ui.AbstractScriptProjectDecorator#getProjectDecorator()
+ */
+ @Override
+ protected ImageDescriptor getProjectDecorator() {
+ return TextMarkerImages.PROJECT_DECARATOR;
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerProjectDecorator.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,87 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.core.TextMarkerNature;
+import org.eclipse.dltk.ast.ASTNode;
+import org.eclipse.dltk.ast.ASTVisitor;
+import org.eclipse.dltk.core.ModelException;
+import org.eclipse.dltk.ui.editor.highlighting.ASTSemanticHighlighter;
+import org.eclipse.dltk.ui.editor.highlighting.ISemanticHighlightingRequestor;
+
+
+public class TextMarkerSemanticPositionUpdater extends ASTSemanticHighlighter {
+
+ private final ISemanticHighlightingExtension[] extensions;
+
+ private final ISemanticHighlightingRequestor[] requestors;
+
+ private static class SemanticPositionRequestorExtension implements ISemanticHighlightingRequestor {
+
+ private final ISemanticHighlightingRequestor requestor;
+
+ private final int offset;
+
+ /**
+ * @param requestor
+ * @param offset
+ */
+ public SemanticPositionRequestorExtension(ISemanticHighlightingRequestor requestor, int offset) {
+ this.offset = offset;
+ this.requestor = requestor;
+ }
+
+ public void addPosition(int start, int end, int highlightingIndex) {
+ requestor.addPosition(start, end, highlightingIndex + offset);
+ }
+
+ }
+
+ public TextMarkerSemanticPositionUpdater(ISemanticHighlightingExtension[] extensions) {
+ this.extensions = extensions;
+ this.requestors = new ISemanticHighlightingRequestor[extensions.length];
+ int offset = 0;
+ for (int i = 0; i < extensions.length; ++i) {
+ requestors[i] = new SemanticPositionRequestorExtension(this, offset);
+ offset += extensions[i].getHighlightings().length;
+ }
+ }
+
+ @Override
+ protected ASTVisitor createVisitor(org.eclipse.dltk.compiler.env.ISourceModule sourceCode)
+ throws ModelException {
+ return new ASTVisitor() {
+
+ @Override
+ public boolean visitGeneral(ASTNode node) throws Exception {
+ for (int i = 0; i < extensions.length; i++) {
+ extensions[i].processNode(node, requestors[i]);
+ }
+ return true;
+ }
+
+ };
+ }
+
+ @Override
+ protected String getNature() {
+ return TextMarkerNature.NATURE_ID;
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerSemanticPositionUpdater.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,151 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.apache.uima.textmarker.ide.core.TextMarkerConstants;
+import org.apache.uima.textmarker.ide.core.TextMarkerLanguageToolkit;
+import org.apache.uima.textmarker.ide.core.parser.TextMarkerParseUtils;
+import org.apache.uima.textmarker.ide.parser.ast.TMTypeConstants;
+import org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor;
+import org.apache.uima.textmarker.ide.ui.text.SimpleTextMarkerSourceViewerConfiguration;
+import org.eclipse.dltk.core.IDLTKLanguageToolkit;
+import org.eclipse.dltk.core.IField;
+import org.eclipse.dltk.core.IScriptFolder;
+import org.eclipse.dltk.core.ISourceModule;
+import org.eclipse.dltk.ui.AbstractDLTKUILanguageToolkit;
+import org.eclipse.dltk.ui.IDLTKUILanguageToolkit;
+import org.eclipse.dltk.ui.ScriptElementLabels;
+import org.eclipse.dltk.ui.text.ScriptSourceViewerConfiguration;
+import org.eclipse.dltk.ui.text.ScriptTextTools;
+import org.eclipse.dltk.ui.viewsupport.ScriptUILabelProvider;
+import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jface.preference.IPreferenceStore;
+
+public class TextMarkerUILanguageToolkit extends AbstractDLTKUILanguageToolkit {
+
+ private static TextMarkerUILanguageToolkit toolkit = null;
+
+ public static IDLTKUILanguageToolkit getInstance() {
+ if (toolkit == null) {
+ toolkit = new TextMarkerUILanguageToolkit();
+ }
+ return toolkit;
+ }
+
+ private static ScriptElementLabels sInstance = new ScriptElementLabels() {
+ @Override
+ protected void getScriptFolderLabel(IScriptFolder folder, StringBuffer buf) {
+ String name = folder.getElementName();
+ name = name.replace(IScriptFolder.PACKAGE_DELIMITER, '.');
+ buf.append(name);
+ }
+
+ @Override
+ protected void getFieldLabel(IField field, long flags, StringBuffer buf) {
+ super.getFieldLabel(field, flags, buf);
+ int i = TextMarkerParseUtils.getTypeOfIModelElement(field);
+ String type = TMTypeConstants.typeStringOfInt.get(i);
+ if (type != null) {
+ type = type.toLowerCase();
+ buf.append(" : ");
+ buf.append(type);
+ }
+ }
+ };
+
+ @Override
+ public ScriptElementLabels getScriptElementLabels() {
+ return sInstance;
+ }
+
+ public IPreferenceStore getPreferenceStore() {
+ return TextMarkerIdePlugin.getDefault().getPreferenceStore();
+ }
+
+ public IDLTKLanguageToolkit getCoreToolkit() {
+ return TextMarkerLanguageToolkit.getDefault();
+ }
+
+ public IDialogSettings getDialogSettings() {
+ return TextMarkerIdePlugin.getDefault().getDialogSettings();
+ }
+
+ @Override
+ public String getPartitioningId() {
+ return TextMarkerConstants.TM_PARTITIONING;
+ }
+
+ @Override
+ public String getEditorId(Object inputElement) {
+ return TextMarkerEditor.EDITOR_ID;
+ }
+
+ @Override
+ public String getInterpreterContainerId() {
+ return "org.apache.uima.textmarker.ide.launching.INTERPRETER_CONTAINER";
+ }
+
+ @Override
+ public ScriptUILabelProvider createScriptUILabelProvider() {
+ return null;
+ }
+
+ @Override
+ public boolean getProvideMembers(ISourceModule element) {
+ return true;
+ }
+
+ @Override
+ public ScriptTextTools getTextTools() {
+ return TextMarkerIdePlugin.getDefault().getTextTools();
+ }
+
+ @Override
+ public ScriptSourceViewerConfiguration createSourceViewerConfiguration() {
+ return new SimpleTextMarkerSourceViewerConfiguration(getTextTools().getColorManager(),
+ getPreferenceStore(), null, getPartitioningId(), false);
+ }
+
+ private static final String INTERPRETERS_PREFERENCE_PAGE_ID = "org.apache.uima.textmarker.ide.preferences.interpreters";
+
+ private static final String DEBUG_PREFERENCE_PAGE_ID = "org.apache.uima.textmarker.ide.preferences.debug";
+
+ @Override
+ public String getInterpreterPreferencePage() {
+ return INTERPRETERS_PREFERENCE_PAGE_ID;
+ }
+
+ @Override
+ public String getDebugPreferencePage() {
+ return DEBUG_PREFERENCE_PAGE_ID;
+ }
+
+ private static final String[] EDITOR_PREFERENCE_PAGES_IDS = {
+ "org.apache.uima.textmarker.ide.preferences.editor",
+ "org.apache.uima.textmarker.ide.ui.editor.SyntaxColoring",
+ "org.apache.uima.textmarker.ide.ui.editor.SmartTyping",
+ "org.apache.uima.textmarker.ide.ui.editor.TextMarkerFolding" };
+
+ @Override
+ public String[] getEditorPreferencePages() {
+ return EDITOR_PREFERENCE_PAGES_IDS;
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUILanguageToolkit.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.dltk.compiler.util.Util;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.ui.editors.text.EditorsUI;
+
+public class TextMarkerUIPreferenceInitializer extends AbstractPreferenceInitializer {
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences
+ * ()
+ */
+ @Override
+ public void initializeDefaultPreferences() {
+ IPreferenceStore store = TextMarkerIdePlugin.getDefault().getPreferenceStore();
+
+ EditorsUI.useAnnotationsPreferencePage(store);
+ EditorsUI.useQuickDiffPreferencePage(store);
+ TextMarkerPreferenceConstants.initializeDefaultValues(store);
+ store.setDefault(TextMarkerPreferenceConstants.FORMATTER_ID, Util.EMPTY_STRING);
+ }
+
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/TextMarkerUIPreferenceInitializer.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import org.eclipse.dltk.ui.DLTKUIPlugin;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.search.ui.NewSearchUI;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+
+public class OpenTextMarkerSearchPageAction implements IWorkbenchWindowActionDelegate {
+
+ private static final String TM_SEARCH_PAGE_ID = "org.apache.uima.textmarker.ide.ui.TextMarkerSearchPage";
+
+ private IWorkbenchWindow window;
+
+ public OpenTextMarkerSearchPageAction() {
+ }
+
+ public void init(IWorkbenchWindow window) {
+ this.window = window;
+ }
+
+ public void run(IAction action) {
+ if (window == null || window.getActivePage() == null) {
+ beep();
+ return;
+ }
+
+ NewSearchUI.openSearchDialog(window, TM_SEARCH_PAGE_ID);
+ }
+
+ public void selectionChanged(IAction action, ISelection selection) {
+ }
+
+ public void dispose() {
+ window = null;
+ }
+
+ protected void beep() {
+ Shell shell = DLTKUIPlugin.getActiveWorkbenchShell();
+ if (shell != null && shell.getDisplay() != null)
+ shell.getDisplay().beep();
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/OpenTextMarkerSearchPageAction.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import org.apache.uima.textmarker.ide.ui.editor.TextMarkerEditor;
+import org.eclipse.dltk.internal.ui.editor.DLTKEditorMessages;
+import org.eclipse.dltk.ui.actions.DLTKActionConstants;
+import org.eclipse.dltk.ui.actions.GenerateActionGroup;
+import org.eclipse.dltk.ui.actions.IScriptEditorActionDefinitionIds;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.ui.texteditor.TextOperationAction;
+
+public class TextMarkerGenerateActionGroup extends GenerateActionGroup {
+ public TextMarkerGenerateActionGroup(TextMarkerEditor editor, String groupName) {
+ super(editor, groupName);
+ Action action = new TextOperationAction(DLTKEditorMessages.getBundleForConstructedKeys(),
+ "Format.", editor, ISourceViewer.FORMAT); //$NON-NLS-1$
+ action.setActionDefinitionId(IScriptEditorActionDefinitionIds.FORMAT);
+ editor.setAction(DLTKActionConstants.FORMAT, action);
+ editor.markAsStateDependentAction(DLTKActionConstants.FORMAT, true);
+ editor.markAsSelectionDependentAction(DLTKActionConstants.FORMAT, true);
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerGenerateActionGroup.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import org.apache.uima.textmarker.ide.ui.TextMarkerUILanguageToolkit;
+import org.eclipse.dltk.ui.IDLTKUILanguageToolkit;
+import org.eclipse.dltk.ui.actions.OpenTypeAction;
+
+
+public class TextMarkerOpenTypeAction extends OpenTypeAction {
+ @Override
+ protected IDLTKUILanguageToolkit getUILanguageToolkit() {
+ return TextMarkerUILanguageToolkit.getInstance();
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeAction.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import org.apache.uima.textmarker.ide.ui.TextMarkerUILanguageToolkit;
+import org.eclipse.dltk.ui.IDLTKUILanguageToolkit;
+import org.eclipse.dltk.ui.actions.OpenTypeInHierarchyAction;
+
+
+public class TextMarkerOpenTypeInHierarchyAction extends OpenTypeInHierarchyAction {
+ @Override
+ protected IDLTKUILanguageToolkit getLanguageToolkit() {
+ return TextMarkerUILanguageToolkit.getInstance();
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerOpenTypeInHierarchyAction.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,195 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import java.util.Iterator;
+import java.util.ResourceBundle;
+
+import org.apache.uima.textmarker.ide.TextMarkerIdePlugin;
+import org.apache.uima.textmarker.ide.ui.text.TextMarkerCorrectionProcessor;
+import org.eclipse.dltk.ui.PreferenceConstants;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.ITextOperationTarget;
+import org.eclipse.jface.text.Position;
+import org.eclipse.jface.text.source.Annotation;
+import org.eclipse.jface.text.source.IAnnotationAccessExtension;
+import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.jface.text.source.IVerticalRulerInfo;
+import org.eclipse.swt.widgets.Event;
+import org.eclipse.ui.editors.text.EditorsUI;
+import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel;
+import org.eclipse.ui.texteditor.AnnotationPreference;
+import org.eclipse.ui.texteditor.AnnotationPreferenceLookup;
+import org.eclipse.ui.texteditor.ITextEditor;
+import org.eclipse.ui.texteditor.ITextEditorExtension;
+import org.eclipse.ui.texteditor.SelectMarkerRulerAction;
+
+public class TextMarkerSelectAnnotationRulerAction extends SelectMarkerRulerAction {
+
+ private ITextEditor fTextEditor;
+
+ private Position fPosition;
+
+ private Annotation fAnnotation;
+
+ private AnnotationPreferenceLookup fAnnotationPreferenceLookup;
+
+ private IPreferenceStore fStore;
+
+ private boolean fHasCorrection;
+
+ private ResourceBundle fBundle;
+
+ public TextMarkerSelectAnnotationRulerAction(ResourceBundle bundle, String prefix,
+ ITextEditor editor, IVerticalRulerInfo ruler) {
+ super(bundle, prefix, editor, ruler);
+ fBundle = bundle;
+ fTextEditor = editor;
+
+ fAnnotationPreferenceLookup = EditorsUI.getAnnotationPreferenceLookup();
+ fStore = TextMarkerIdePlugin.getDefault().getPreferenceStore();
+
+ // PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
+ // IJavaHelpContextIds.JAVA_SELECT_MARKER_RULER_ACTION);
+ }
+
+ @Override
+ public void run() {
+ if (fStore.getBoolean(PreferenceConstants.EDITOR_ANNOTATION_ROLL_OVER))
+ return;
+
+ runWithEvent(null);
+ }
+
+ /*
+ * @see org.eclipse.jface.action.IAction#runWithEvent(org.eclipse.swt.widgets.Event)
+ *
+ * @since 3.2
+ */
+ @Override
+ public void runWithEvent(Event event) {
+ // if (fAnnotation instanceof
+ // OverrideIndicatorManager.OverrideIndicator) {
+ // ((OverrideIndicatorManager.OverrideIndicator)fAnnotation).open();
+ // return;
+ // }
+
+ if (fHasCorrection) {
+ ITextOperationTarget operation = (ITextOperationTarget) fTextEditor
+ .getAdapter(ITextOperationTarget.class);
+ final int opCode = ISourceViewer.QUICK_ASSIST;
+ if (operation != null && operation.canDoOperation(opCode)) {
+ fTextEditor.selectAndReveal(fPosition.getOffset(), fPosition.getLength());
+ operation.doOperation(opCode);
+ }
+ return;
+ }
+
+ super.run();
+ }
+
+ @Override
+ public void update() {
+ findJavaAnnotation();
+ setEnabled(true); // super.update() might change this later
+
+ // if (fAnnotation instanceof
+ // OverrideIndicatorManager.OverrideIndicator) {
+ // initialize(fBundle,
+ // "JavaSelectAnnotationRulerAction.OpenSuperImplementation.");
+ // //$NON-NLS-1$
+ // return;
+ // }
+ if (fHasCorrection) {
+ // if (fAnnotation instanceof AssistAnnotation)
+ // initialize(fBundle,
+ // "JavaSelectAnnotationRulerAction.QuickAssist."); //$NON-NLS-1$
+ // else
+ initialize(fBundle, "JavaSelectAnnotationRulerAction.QuickFix."); //$NON-NLS-1$
+ return;
+ }
+
+ initialize(fBundle, "JavaSelectAnnotationRulerAction.GotoAnnotation."); //$NON-NLS-1$;
+ super.update();
+ }
+
+ private void findJavaAnnotation() {
+ fPosition = null;
+ fAnnotation = null;
+ fHasCorrection = false;
+
+ AbstractMarkerAnnotationModel model = getAnnotationModel();
+ IAnnotationAccessExtension annotationAccess = getAnnotationAccessExtension();
+
+ IDocument document = getDocument();
+ if (model == null)
+ return;
+
+ boolean hasAssistLightbulb = false;
+ // fStore.getBoolean(TextMarkerPreferenceConstants.EDITOR_QUICKASSIST_LIGHTBULB);
+
+ Iterator iter = model.getAnnotationIterator();
+ int layer = Integer.MIN_VALUE;
+
+ while (iter.hasNext()) {
+ Annotation annotation = (Annotation) iter.next();
+ if (annotation.isMarkedDeleted())
+ continue;
+
+ int annotationLayer = layer;
+ if (annotationAccess != null) {
+ annotationLayer = annotationAccess.getLayer(annotation);
+ if (annotationLayer < layer)
+ continue;
+ }
+
+ Position position = model.getPosition(annotation);
+ if (!includesRulerLine(position, document))
+ continue;
+
+ boolean isReadOnly = fTextEditor instanceof ITextEditorExtension
+ && ((ITextEditorExtension) fTextEditor).isEditorInputReadOnly();
+ if (!isReadOnly && ((TextMarkerCorrectionProcessor.hasCorrections(annotation)))) {
+ fPosition = position;
+ fAnnotation = annotation;
+ fHasCorrection = true;
+ layer = annotationLayer;
+ continue;
+ } else {
+ AnnotationPreference preference = fAnnotationPreferenceLookup
+ .getAnnotationPreference(annotation);
+ if (preference == null)
+ continue;
+
+ String key = preference.getVerticalRulerPreferenceKey();
+ if (key == null)
+ continue;
+
+ if (fStore.getBoolean(key)) {
+ fPosition = position;
+ fAnnotation = annotation;
+ fHasCorrection = false;
+ layer = annotationLayer;
+ }
+ }
+ }
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectAnnotationRulerAction.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
+package org.apache.uima.textmarker.ide.ui.actions;
+
+import org.eclipse.dltk.internal.ui.editor.DLTKEditorMessages;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.text.source.IVerticalRulerInfo;
+import org.eclipse.ui.texteditor.AbstractRulerActionDelegate;
+import org.eclipse.ui.texteditor.ITextEditor;
+
+public class TextMarkerSelectRulerAction extends AbstractRulerActionDelegate {
+
+ @Override
+ protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
+ return new TextMarkerSelectAnnotationRulerAction(DLTKEditorMessages
+ .getBundleForConstructedKeys(), "SelectAnnotationRulerAction.", editor, rulerInfo); //$NON-NLS-1$
+ }
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/actions/TextMarkerSelectRulerAction.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java
URL: http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java?rev=1157047&view=auto
==============================================================================
--- uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java (added)
+++ uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java Fri Aug 12 11:00:38 2011
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.uima.textmarker.ide.ui.console;
+
+import org.eclipse.osgi.util.NLS;
+
+public class ConsoleMessages extends NLS {
+ private static final String BUNDLE_NAME = "org.apache.uima.textmarker.ide.debug.ui.console.ConsoleMessages";
+
+ public static String TextMarkerFileHyperlink_Information_1;
+
+ public static String TextMarkerFileHyperlink_Error;
+
+ public static String ScriptStackTraceConsoleFactory_0;
+
+ public static String ScriptStackTraceConsole_0;
+
+ public static String TextMarkerFileHyperlink_Source_not_found_for__0__2;
+
+ public static String TextMarkerFileHyperlink_An_exception_occurred_while_following_link__3;
+
+ public static String TextMarkerFileHyperlink_Unable_to_parse_type_name_from_hyperlink__5;
+
+ public static String TextMarkerFileHyperlink_Unable_to_parse_line_number_from_hyperlink__6;
+
+ public static String TextMarkerFileHyperlink_Unable_to_parse_line_number_from_hyperlink__7;
+
+ public static String TextMarkerFileHyperlink_Unable_to_retrieve_hyperlink_text__8;
+
+ static {
+ NLS.initializeMessages(BUNDLE_NAME, ConsoleMessages.class);
+ }
+
+ public static String TextMarkerFileHyperlink_0;
+
+ public static String TextMarkerFileHyperlink_1;
+}
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/ui/console/ConsoleMessages.java
------------------------------------------------------------------------------
svn:mime-type = text/plain