geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r510510 - in /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui: commands/ internal/ sections/
Date Thu, 22 Feb 2007 13:46:02 GMT
Author: sppatel
Date: Thu Feb 22 05:46:01 2007
New Revision: 510510

URL: http://svn.apache.org/viewvc?view=rev&rev=510510
Log:
cleanup after refactor

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetInPlaceSharedLibCommand.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetRunFromWorkspaceCommand.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.properties
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/ServerEditorTestEnvSection.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetInPlaceSharedLibCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetInPlaceSharedLibCommand.java?view=diff&rev=510510&r1=510509&r2=510510
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetInPlaceSharedLibCommand.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetInPlaceSharedLibCommand.java
Thu Feb 22 05:46:01 2007
@@ -1,59 +0,0 @@
-/*
- * 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.geronimo.st.v11.ui.commands;
-
-import org.apache.geronimo.st.ui.commands.ServerCommand;
-import org.apache.geronimo.st.v11.core.GeronimoServer;
-import org.eclipse.wst.server.core.IServerWorkingCopy;
-
-public class SetInPlaceSharedLibCommand extends ServerCommand {
-
-	boolean value;
-
-	boolean oldValue;
-
-	/**
-	 * @param server
-	 * @param name
-	 */
-	public SetInPlaceSharedLibCommand(IServerWorkingCopy server, boolean value) {
-		super(server, "SetInPlaceSharedLibCommand");
-		this.value = value;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
-	 */
-	public void execute() {
-		GeronimoServer gs = (GeronimoServer) server.getAdapter(GeronimoServer.class);
-		oldValue = gs.isInPlaceSharedLib();
-		gs.setInPlaceSharedLib(value);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
-	 */
-	public void undo() {
-		GeronimoServer gs = (GeronimoServer) server.getAdapter(GeronimoServer.class);
-		gs.setInPlaceSharedLib(oldValue);
-	}
-
-}

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetRunFromWorkspaceCommand.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetRunFromWorkspaceCommand.java?view=diff&rev=510510&r1=510509&r2=510510
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetRunFromWorkspaceCommand.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/commands/SetRunFromWorkspaceCommand.java
Thu Feb 22 05:46:01 2007
@@ -1,59 +0,0 @@
-/*
- * 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.geronimo.st.v11.ui.commands;
-
-import org.apache.geronimo.st.ui.commands.ServerCommand;
-import org.apache.geronimo.st.v11.core.GeronimoServer;
-import org.eclipse.wst.server.core.IServerWorkingCopy;
-
-public class SetRunFromWorkspaceCommand extends ServerCommand {
-
-	boolean value;
-
-	boolean oldValue;
-
-	/**
-	 * @param server
-	 * @param name
-	 */
-	public SetRunFromWorkspaceCommand(IServerWorkingCopy server, boolean value) {
-		super(server, "SetRunFromWorkspaceCommand");
-		this.value = value;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#execute()
-	 */
-	public void execute() {
-		GeronimoServer gs = (GeronimoServer) server.getAdapter(GeronimoServer.class);
-		oldValue = gs.isRunFromWorkspace();
-		gs.setRunFromWorkspace(value);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.apache.geronimo.st.ui.commands.ServerCommand#undo()
-	 */
-	public void undo() {
-		GeronimoServer gs = (GeronimoServer) server.getAdapter(GeronimoServer.class);
-		gs.setRunFromWorkspace(oldValue);
-	}
-
-}

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.java?view=diff&rev=510510&r1=510509&r2=510510
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.java
Thu Feb 22 05:46:01 2007
@@ -26,10 +26,6 @@
 	}
 	
 	public static String artifactId;
-	public static String editorSectionTestEnvTitle;
-	public static String editorSectionTestEnvDescription;
-	public static String editorSectionRunFromWorkspace;
-	public static String editorSectionSharedLibrariesInPlace;
 	public static String gBeanLink;
 	public static String groupId;
 	public static String moduleId;

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.properties?view=diff&rev=510510&r1=510509&r2=510510
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.properties
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/internal/Messages.properties
Thu Feb 22 05:46:01 2007
@@ -14,10 +14,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-editorSectionTestEnvTitle=Test Environment
-editorSectionTestEnvDescription=Configure local test environment options.
-editorSectionSharedLibrariesInPlace=Enable in-place shared library support.
-editorSectionRunFromWorkspace=Run modules directly from workspace.
 seeRestrictions=This feature currently has restrictions.  See the release notes for more
details.
 
 groupId=Group Id:

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/ServerEditorTestEnvSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/ServerEditorTestEnvSection.java?view=diff&rev=510510&r1=510509&r2=510510
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/ServerEditorTestEnvSection.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v11.ui/src/org/apache/geronimo/st/v11/ui/sections/ServerEditorTestEnvSection.java
Thu Feb 22 05:46:01 2007
@@ -1,101 +0,0 @@
-/*
- * 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.geronimo.st.v11.ui.sections;
-
-import org.apache.geronimo.st.core.IGeronimoServer;
-import org.apache.geronimo.st.v11.ui.commands.SetInPlaceSharedLibCommand;
-import org.apache.geronimo.st.v11.ui.commands.SetRunFromWorkspaceCommand;
-import org.apache.geronimo.st.v11.ui.internal.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-import org.eclipse.ui.forms.widgets.FormToolkit;
-import org.eclipse.ui.forms.widgets.Section;
-import org.eclipse.wst.server.ui.editor.ServerEditorSection;
-
-public class ServerEditorTestEnvSection extends ServerEditorSection {
-
-	private Button runFromWorkspace;
-
-	private Button inPlaceSharedLib;
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see org.eclipse.wst.server.ui.editor.ServerEditorSection#createSection(org.eclipse.swt.widgets.Composite)
-	 */
-	public void createSection(Composite parent) {
-		super.createSection(parent);
-
-		FormToolkit toolkit = getFormToolkit(parent.getDisplay());
-
-		Section section = toolkit.createSection(parent, ExpandableComposite.TWISTIE
-				| ExpandableComposite.EXPANDED
-				| ExpandableComposite.TITLE_BAR
-				| Section.DESCRIPTION | ExpandableComposite.FOCUS_TITLE);
-
-		section.setText(Messages.editorSectionTestEnvTitle);
-		section.setDescription(Messages.editorSectionTestEnvDescription);
-		section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-
-		Composite composite = toolkit.createComposite(section);
-		GridLayout layout = new GridLayout();
-		layout.numColumns = 1;
-		layout.marginHeight = 5;
-		layout.marginWidth = 10;
-		layout.verticalSpacing = 5;
-		layout.horizontalSpacing = 15;
-		composite.setLayout(layout);
-		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
-		section.setClient(composite);
-		
-		IGeronimoServer gs = (IGeronimoServer) server.getAdapter(IGeronimoServer.class);
-
-		inPlaceSharedLib = toolkit.createButton(composite, Messages.editorSectionSharedLibrariesInPlace,
SWT.CHECK);
-		inPlaceSharedLib.setSelection(gs.isInPlaceSharedLib());
-		inPlaceSharedLib.addSelectionListener(new SelectionListener() {
-
-			public void widgetSelected(SelectionEvent e) {
-				execute(new SetInPlaceSharedLibCommand(server, inPlaceSharedLib
-						.getSelection()));
-			}
-
-			public void widgetDefaultSelected(SelectionEvent e) {
-			}
-
-		});
-
-		runFromWorkspace = toolkit.createButton(composite, Messages.editorSectionRunFromWorkspace,
SWT.CHECK);
-		runFromWorkspace.setSelection(gs.isRunFromWorkspace());
-		runFromWorkspace.setEnabled(false);	//FIXME disable support until supported
-		runFromWorkspace.addSelectionListener(new SelectionListener() {
-
-			public void widgetSelected(SelectionEvent e) {
-				execute(new SetRunFromWorkspaceCommand(server, runFromWorkspace.getSelection()));
-			}
-
-			public void widgetDefaultSelected(SelectionEvent e) {
-			}
-
-		});
-	}
-}



Mime
View raw message