Skip to content

achimmihca/EclipseLineShortcuts

Repository files navigation

This is an Eclipse plugin that adds commands to cut and copy a complete line or the selected text, depending on the selection. If there is no text selected then the complete line is cut / copied. Otherwise the selected text is cut / copied as usual.

Published on the Eclipse Marketplace
Update Site: https://raw.githubusercontent.com/achimmihca/EclipseLineShortcuts/release/updatesite

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Screenshots


Development Environment Setup

The following explains how to set up your Eclipse IDE to continue the development of this plugin.

  1. Clone the repository

  2. Download and start Eclipse

  3. Install the plugin Development Tools (PDE) if not done yet

    1. Help > Install New Software...
    2. Work with download.eclipse.org/releases/...
    3. Select 'General Purpose Tools' > 'Eclipse Plugin Development Environment.'
  4. Import the projects from the cloned repository

    1. File > Import... > Existing Projects Into Workspace
    2. Select the repository location and import all projects
  5. Configure the Target Platform. It must contain all required plugins and should not contain to much bloat, such that the test environment starts up quickly.

    1. A Target Platform has been prepared in config/target-platforms. Open the file and click 'Set as Active Target Platform' in the upper right corner.
  6. Run the plugin in a new Eclipse instance.

    1. Use a launch configuration for an Eclipse Application and select on the plug-ins tab the plugins from the target-platform and the current workspace.

Conventions and Configurations

  1. Use spaces instead tabs: Preferences > General > Editors > Text Editors > Insert spaces for tabs: true

  2. Enable UTF-8 encoding: Preferences > General > Workspace > Text file encoding: UTF-8

  3. You can find the code style configuration in config/code-style.

    1. Import the configuration file in Eclipse under Preferences > Java > Code Style > Formatter.

    2. Enable formatting on save using Save Actions: Preferences > Java > Editor > Save Actions > Format source code

Building the Update Site

The Eclipse Update Site for this plugin is hosted also on GitHub. You find it in the 'updatesite' folder. The folder in the 'master' branch is for alpha versions and pre-release testing, whereas the 'release' branch contains the released versions of the plugin that are considered stable.

The plugin project contains the code for the plugin. On the other hand, the feature project (ends with '.feature') contains information to bundle and deploy the plugin as an Eclipse Update Site.

  1. Delete all old content in the updatesite folder

  2. Go to File > Export... > Deployable Feature

  3. Choose a target directory.

  4. Under the 'Options' tab, make sure that 'Categorize repository' is checked and the corresponding category.xml is selected.

  5. Hit 'Finish'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages