Author: mareshkau
Date: 2009-07-07 05:03:31 -0400 (Tue, 07 Jul 2009)
New Revision: 16459
Removed:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/UpdateJobGroup.java
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3793
Deleted:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/UpdateJobGroup.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/UpdateJobGroup.java 2009-07-07
07:50:27 UTC (rev 16458)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/UpdateJobGroup.java 2009-07-07
09:03:31 UTC (rev 16459)
@@ -1,60 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2007 Red Hat, Inc.
-* Distributed under license by Red Hat, Inc. All rights reserved.
-* This program is made available under the terms of the
-* Eclipse Public License v1.0 which accompanies this distribution,
-* and is available at
http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* Red Hat, Inc. - initial API and implementation
-******************************************************************************/
-package org.jboss.tools.vpe.editor;
-
-
-import org.eclipse.ui.progress.UIJob;
-
-/**
- * @author mareshkau
- *
- * Creates a group of jobs for updating vpe content
- */
-
-public abstract class UpdateJobGroup extends UIJob {
-
- /**
- * Current job identification
- */
- private String jobName;
- /**
- * Contains indetification for job group
- */
- public static final String UPDATE_JOB="UPDATE_JOB"; //$NON-NLS-1$
-
- /**
- * Update Job
- * @param name
- * @param jobName
- */
- public UpdateJobGroup(String name, String jobName) {
- super(name);
- setJobName(jobName);
- }
-
- public boolean belongsTo(Object family) {
-
- return UPDATE_JOB.equals(getJobName());
- }
- /**
- * @return the jobName
- */
- private String getJobName() {
- return jobName;
- }
- /**
- * @param jobName the jobName to set
- */
- private void setJobName(String jobName) {
- this.jobName = jobName;
- }
-
-}
\ No newline at end of file
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2009-07-07
07:50:27 UTC (rev 16458)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2009-07-07
09:03:31 UTC (rev 16459)
@@ -205,18 +205,6 @@
return editPart;
}
- public void openIncludeFile(String file) {
- IEditorInput input = editPart.getEditorInput();
- IWorkbenchPage workbenchPage =
VpePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage();
- try{
- IFile f = FileUtil.getFile(input, file);
- if (f != null) {
- IDE.openEditor(workbenchPage, f, true);
- }
- }catch(PartInitException ex){
- VpePlugin.reportProblem(ex);
- }
- }
public List<TaglibData> getIncludeTaglibs() {
if (getEditPart() == null) {
@@ -239,32 +227,6 @@
return taglibData;
}
- public ResourceReference[] getIncludeCss() {
- IEditorInput input = getEditPart().getEditorInput();
- IFile file = null;
- if (input instanceof IFileEditorInput) {
- file = ((IFileEditorInput)input).getFile();
- }
- ResourceReference[] resourceReferences = new ResourceReference[0];
- if (file != null) {
- resourceReferences = CSSReferenceList.getInstance().getAllResources(file);
- }
- return resourceReferences;
- }
-
- public void installIncludeElements() {
-// ResourceReference[] list = getIncludeTaglibs();
-// for (int i = 0; i < list.length; i++) {
-// ResourceReference reference = list[i];
-//// setTaglib(i, reference.getLocation(), reference.getProperties(), false);
-// }
-
- ResourceReference[] list = getIncludeCss();
- for (int i = 0; i < list.length; i++) {
- visualBuilder.addLinkNodeToHead(list[i].getLocation(), "yes", false);
- }
- }
-
public ResourceReference getRuntimeRelativeFolder(IFile file) {
ResourceReference[] list =
RelativeFolderReferenceList.getInstance().getAllResources(file);
if (list.length > 0) {
@@ -309,16 +271,6 @@
return XmlUtil.getTaglibsForNode(sourceNode, this);
}
- public void removeTaglibListener(VpeTaglibListener listener) {
- // TODO Auto-generated method stub
-
- }
-
- public void setReferenceNode(Node node) {
- // TODO Auto-generated method stub
-
- }
-
/**
* @return the currentVisualNode
*/