Permalink
Browse files

extracted debug.core and debug.ui plugins

darcs-hash:20080317234420-34f1c-ee704b15d6c7a134787f372be34cc6bafd425641.gz
  • Loading branch information...
1 parent d26c71b commit dae82ac5a4dfd783b982732d035aeb147f40a960 @leiffrenzel leiffrenzel committed Mar 17, 2008
Showing with 1,856 additions and 505 deletions.
  1. +7 −0 net.sf.eclipsefp.haskell-feature/feature.xml
  2. +0 −1 net.sf.eclipsefp.haskell.core/plugin.properties
  3. +0 −9 net.sf.eclipsefp.haskell.core/plugin.xml
  4. +17 −0 net.sf.eclipsefp.haskell.debug.core/.checkstyle
  5. +7 −0 net.sf.eclipsefp.haskell.debug.core/.classpath
  6. +34 −0 net.sf.eclipsefp.haskell.debug.core/.project
  7. +320 −0 net.sf.eclipsefp.haskell.debug.core/.settings/org.eclipse.jdt.core.prefs
  8. +52 −0 net.sf.eclipsefp.haskell.debug.core/.settings/org.eclipse.jdt.ui.prefs
  9. +15 −0 net.sf.eclipsefp.haskell.debug.core/.settings/org.eclipse.pde.prefs
  10. +31 −0 net.sf.eclipsefp.haskell.debug.core/INTERNAL/integration/apicheckstyle.xml
  11. +58 −0 net.sf.eclipsefp.haskell.debug.core/INTERNAL/integration/checkstyle.xml
  12. +41 −0 ...l.debug.core/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal/HaskellDebugCore.java
  13. +21 −19 ....core/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal}/launch/CommandLineUtil.java
  14. +7 −5 ...INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal}/launch/HaskellLaunchDelegate.java
  15. +5 −2 ...ore/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal}/launch/ILaunchAttributes.java
  16. +24 −0 ...ell.debug.core/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal/util/CoreTexts.java
  17. +5 −0 ...bug.core/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/core/internal/util/coretexts.properties
  18. +13 −0 net.sf.eclipsefp.haskell.debug.core/META-INF/MANIFEST.MF
  19. +6 −0 net.sf.eclipsefp.haskell.debug.core/build.properties
  20. +10 −0 net.sf.eclipsefp.haskell.debug.core/plugin.properties
  21. +13 −0 net.sf.eclipsefp.haskell.debug.core/plugin.xml
  22. +17 −0 net.sf.eclipsefp.haskell.debug.ui/.checkstyle
  23. +7 −0 net.sf.eclipsefp.haskell.debug.ui/.classpath
  24. +34 −0 net.sf.eclipsefp.haskell.debug.ui/.project
  25. +315 −0 net.sf.eclipsefp.haskell.debug.ui/.settings/org.eclipse.jdt.core.prefs
  26. +52 −0 net.sf.eclipsefp.haskell.debug.ui/.settings/org.eclipse.jdt.ui.prefs
  27. +15 −0 net.sf.eclipsefp.haskell.debug.ui/.settings/org.eclipse.pde.prefs
  28. +31 −0 net.sf.eclipsefp.haskell.debug.ui/INTERNAL/integration/apicheckstyle.xml
  29. +58 −0 net.sf.eclipsefp.haskell.debug.ui/INTERNAL/integration/checkstyle.xml
  30. +36 −0 ...haskell.debug.ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal/HaskellDebugUI.java
  31. +133 −0 ...NTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal/launch/ExecutableLaunchOperation.java
  32. +11 −9 ...NTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/ExecutableLaunchShortcut.java
  33. +75 −66 ....ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/HaskellArgumentsTab.java
  34. +11 −6 ...i/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/HaskellLaunchTabGroup.java
  35. +12 −11 ...a/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/IInteractiveLaunchOperationDelegate.java
  36. +52 −42 ...ERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/InteractiveLaunchOperation.java
  37. +20 −22 ...TERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/InteractiveLaunchShortcut.java
  38. +31 −25 ...ebug.ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/LaunchOperation.java
  39. +29 −25 ...ug.ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal}/launch/SelectionAnalyzer.java
  40. +5 −3 ...java/src/net/sf/eclipsefp/haskell/debug/ui/internal/launch/ghci}/GhciLaunchOperationDelegate.java
  41. +9 −6 ...INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal/launch/ghci}/GhciLaunchShortcut.java
  42. +41 −0 ...p.haskell.debug.ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal/util/UITexts.java
  43. +20 −0 ...ell.debug.ui/INTERNAL/java/src/net/sf/eclipsefp/haskell/debug/ui/internal/util/uitexts.properties
  44. +19 −0 net.sf.eclipsefp.haskell.debug.ui/META-INF/MANIFEST.MF
  45. +7 −0 net.sf.eclipsefp.haskell.debug.ui/build.properties
  46. BIN net.sf.eclipsefp.haskell.debug.ui/icons/etool16/ghci16.gif
  47. BIN net.sf.eclipsefp.haskell.debug.ui/icons/etool16/hsicon16.gif
  48. +14 −0 net.sf.eclipsefp.haskell.debug.ui/plugin.properties
  49. +75 −0 net.sf.eclipsefp.haskell.debug.ui/plugin.xml
  50. +6 −5 net.sf.eclipsefp.haskell.ghccompiler/META-INF/MANIFEST.MF
  51. +0 −3 net.sf.eclipsefp.haskell.ghccompiler/plugin.properties
  52. +0 −26 net.sf.eclipsefp.haskell.ghccompiler/plugin.xml
  53. +2 −1 net.sf.eclipsefp.haskell.haddock/META-INF/MANIFEST.MF
  54. +12 −13 net.sf.eclipsefp.haskell.haddock/src/net/sf/eclipsefp/haskell/haddock/ui/wizard/op/GenerateDocs.java
  55. +5 −4 net.sf.eclipsefp.haskell.hugs/META-INF/MANIFEST.MF
  56. +9 −10 ...lipsefp.haskell.hugs/src/net/sf/eclipsefp/haskell/hugs/ui/launch/HugsLaunchOperationDelegate.java
  57. +5 −5 net.sf.eclipsefp.haskell.hugs/src/net/sf/eclipsefp/haskell/hugs/ui/launch/HugsLaunchShortcut.java
  58. +2 −3 net.sf.eclipsefp.haskell.ui/META-INF/MANIFEST.MF
  59. +0 −3 net.sf.eclipsefp.haskell.ui/plugin.properties
  60. +0 −48 net.sf.eclipsefp.haskell.ui/plugin.xml
  61. +0 −133 net.sf.eclipsefp.haskell.ui/src/net/sf/eclipsefp/haskell/ui/launch/ExecutableLaunchOperation.java
@@ -143,4 +143,11 @@ available at http://www.eclipse.org/legal/epl-v10.html.
version="1.102.0"
fragment="true"/>
+ <plugin
+ id="net.sf.eclipsefp.haskell.debug.ui"
+ download-size="0"
+ install-size="0"
+ version="1.102.0"
+ unpack="false"/>
+
</feature>
@@ -12,7 +12,6 @@ haskellBuilder_name = Haskell Builder
cabalBuilder_name = Cabal Builder
haskellProblem_name = Haskell Problem
haskellProjectProblem_name = Haskell Project Problem
-haskellApplicationLaunchType_name = Haskell application
validateCabalFile_name = Validate Cabal File
pfRefactoring_name = Pointfree refactoring
@@ -42,15 +42,6 @@
</initializer>
</extension>
<extension
- point="org.eclipse.debug.core.launchConfigurationTypes">
- <launchConfigurationType
- name="%haskellApplicationLaunchType_name"
- delegate="net.sf.eclipsefp.haskell.core.launch.HaskellLaunchDelegate"
- modes="run"
- id="net.sf.eclipsefp.haskell.core.launch.HaskellLaunchDelegate">
- </launchConfigurationType>
- </extension>
- <extension
point="org.eclipse.team.core.fileTypes">
<fileTypes
type="text"
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fileset-config file-format-version="1.2.0" simple-config="false">
+ <local-check-config name="Basic Checks" location="INTERNAL/integration/checkstyle.xml" type="project" description="">
+ <additional-data name="protect-config-file" value="false"/>
+ </local-check-config>
+ <local-check-config name="API Checkstyle" location="INTERNAL/integration/apicheckstyle.xml" type="project" description="">
+ <additional-data name="protect-config-file" value="false"/>
+ </local-check-config>
+ <fileset name="all" enabled="true" check-config-name="Basic Checks" local="true">
+ <file-match-pattern match-pattern="." include-pattern="true"/>
+ </fileset>
+ <fileset name="api" enabled="true" check-config-name="API Checkstyle" local="true">
+ <file-match-pattern match-pattern=".java$" include-pattern="true"/>
+ <file-match-pattern match-pattern=".*internal.*.java$" include-pattern="false"/>
+ </fileset>
+ <filter name="NonSrcDirs" enabled="true"/>
+</fileset-config>
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="INTERNAL/java/src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>net.sf.eclipsefp.haskell.debug.core</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>com.atlassw.tools.eclipse.checkstyle.CheckstyleNature</nature>
+ </natures>
+</projectDescription>

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,52 @@
+#Tue Mar 18 00:07:29 CET 2008
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+formatter_profile=_x
+formatter_settings_version=11
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.format_source_code=false
+sp_cleanup.make_local_variable_final=false
+sp_cleanup.make_parameters_final=true
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_variable_declarations_final=true
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=true
+sp_cleanup.remove_unused_imports=true
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_blocks=true
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
@@ -0,0 +1,15 @@
+#Tue Mar 18 00:07:00 CET 2008
+compilers.incompatible-environment=1
+compilers.p.build=1
+compilers.p.deprecated=1
+compilers.p.missing-packages=2
+compilers.p.no-required-att=0
+compilers.p.not-externalized-att=1
+compilers.p.unknown-attribute=1
+compilers.p.unknown-class=1
+compilers.p.unknown-element=1
+compilers.p.unknown-resource=1
+compilers.p.unresolved-ex-points=0
+compilers.p.unresolved-import=0
+compilers.use-project=true
+eclipse.preferences.version=1
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?><!--This configuration file was written by the eclipse-cs plugin configuration editor-->
+
+<!--
+api:
+
+-->
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<module name="Checker">
+<property name="severity" value="warning"/>
+<module name="TreeWalker">
+<module name="JavadocType">
+<property name="scope" value="public"/>
+</module>
+<module name="JavadocMethod">
+<property name="scope" value="protected"/>
+<property name="allowUndeclaredRTE" value="true"/>
+</module>
+<module name="JavadocStyle">
+<property name="excludeScope" value="nothing"/>
+<property name="checkEmptyJavadoc" value="true"/>
+</module>
+<module name="JavadocType">
+<property name="scope" value="protected"/>
+</module>
+<module name="JavadocVariable">
+<property name="scope" value="protected"/>
+</module>
+</module>
+<module name="PackageHtml">
+</module>
+</module>
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?><!--This configuration file was written by the eclipse-cs plugin configuration editor-->
+
+<!--
+basic:
+
+-->
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<module name="Checker">
+<property name="severity" value="warning"/>
+<module name="TreeWalker">
+<module name="ArrayTypeStyle">
+</module>
+<module name="FinalParameters">
+<property name="tokens" value="METHOD_DEF, CTOR_DEF"/>
+</module>
+<module name="UpperEll">
+</module>
+<module name="DeclarationOrder">
+</module>
+<module name="EmptyStatement">
+</module>
+<module name="FallThrough">
+</module>
+<module name="HiddenField">
+<property name="severity" value="ignore"/>
+<property name="tokens" value="PARAMETER_DEF, VARIABLE_DEF"/>
+<property name="ignoreConstructorParameter" value="true"/>
+<property name="ignoreSetter" value="true"/>
+</module>
+<module name="InnerAssignment">
+<property name="tokens" value="ASSIGN, BAND_ASSIGN, BOR_ASSIGN, BSR_ASSIGN, BXOR_ASSIGN, DIV_ASSIGN, MINUS_ASSIGN, MOD_ASSIGN, PLUS_ASSIGN, SL_ASSIGN, SR_ASSIGN, STAR_ASSIGN"/>
+</module>
+<module name="NestedIfDepth">
+<property name="max" value="3"/>
+</module>
+<module name="PackageDeclaration">
+</module>
+<module name="ReturnCount">
+<property name="max" value="1"/>
+</module>
+<module name="OperatorWrap">
+<property name="tokens" value="BAND, BOR, BSR, BXOR, COLON, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR"/>
+</module>
+<module name="TabCharacter">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="No tabs"/>
+<property name="severity" value="error"/>
+</module>
+<module name="RegexpHeader">
+<property name="header" value="^// Copyright \(c\) (\d\d\d\d-)?2008 by Leif Frenzel. All rights reserved.$\n^// This code is made available under the terms of the Eclipse Public License,$\n^// version 1.0 \(EPL\). See http://www.eclipse.org/legal/epl-v10.html$"/>
+</module>
+<module name="JavadocType">
+<property name="scope" value="public"/>
+</module>
+<module name="CyclomaticComplexity">
+<property name="max" value="7"/>
+</module>
+</module>
+</module>
@@ -0,0 +1,41 @@
+// Copyright (c) 2008 by Leif Frenzel. All rights reserved.
+// This code is made available under the terms of the Eclipse Public License,
+// version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
+package net.sf.eclipsefp.haskell.debug.core.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/** <p>The main plugin class for the Haskell Debug Core.</p>
+ *
+ * @author Leif Frenzel
+ */
+public class HaskellDebugCore extends Plugin {
+
+ // The shared instance
+ private static HaskellDebugCore plugin;
+
+ public static HaskellDebugCore getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginId() {
+ return getDefault().getBundle().getSymbolicName();
+ }
+
+
+ // interface methods of Activator
+ /////////////////////////////////
+
+ @Override
+ public void start( final BundleContext context ) throws Exception {
+ super.start( context );
+ plugin = this;
+ }
+
+ @Override
+ public void stop( final BundleContext context ) throws Exception {
+ plugin = null;
+ super.stop( context );
+ }
+}
@@ -1,13 +1,15 @@
-// Copyright (c) 2003-2005 by Leif Frenzel - see http://leiffrenzel.de
-package net.sf.eclipsefp.haskell.core.launch;
+// Copyright (c) 2003-2008 by Leif Frenzel. All rights reserved.
+// This code is made available under the terms of the Eclipse Public License,
+// version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
+package net.sf.eclipsefp.haskell.debug.core.internal.launch;
import java.util.ArrayList;
import java.util.List;
/** <p>parses command line arguments out of one big string into
* a list.</p>
- *
+ *
* @author Leif Frenzel
*/
public class CommandLineUtil {
@@ -24,31 +26,31 @@ public static String renderCommandLine( final String[] commandLine ) {
buf.append( ' ' );
buf.append( commandLine[ i ] );
}
- }
+ }
return buf.toString();
}
-
-
- /** <p>parses the argument text into an array of individual arguments using
+
+
+ /** <p>parses the argument text into an array of individual arguments using
* the space character as the delimiter.</p>
- *
- * <p>An individual argument containing spaces must have a double quote (")
- * at the start and end. Two double quotes together is taken to mean an
+ *
+ * <p>An individual argument containing spaces must have a double quote (")
+ * at the start and end. Two double quotes together is taken to mean an
* embedded double quote in the argument text.</p>
*/
static String[] parse( final String content ) {
- String[] result = new String[ 0 ];
+ String[] result = new String[ 0 ];
if( content != null && content.length() > 0 ) {
List<String> alResult = new ArrayList<String>();
boolean inQuotes = false;
int start = 0;
int end = content.length();
StringBuffer buffer = new StringBuffer( end );
-
+
while( start < end ) {
char ch = content.charAt( start );
start++;
-
+
switch( ch ) {
case ARG_DELIMITER :
if( inQuotes ) {
@@ -60,7 +62,7 @@ public static String renderCommandLine( final String[] commandLine ) {
}
}
break;
-
+
case ARG_DBL_QUOTE :
if( start < end ) {
if( content.charAt( start ) == ARG_DBL_QUOTE ) {
@@ -75,20 +77,20 @@ public static String renderCommandLine( final String[] commandLine ) {
inQuotes = false;
}
break;
-
+
default :
buffer.append( ch );
break;
}
}
-
+
if( buffer.length() > 0 ) {
alResult.add( buffer.toString() );
}
-
+
result = new String[ alResult.size() ];
alResult.toArray( result );
}
- return result;
- }
+ return result;
+ }
}
Oops, something went wrong.

0 comments on commit dae82ac

Please sign in to comment.